Loading ...

Send Curl Request To Jira From Command Prompt

Hello everybody,

Few days ago I had a task to send delete link request to jira. For this pupose I found curl utility, and here is how delete request can be submitted from command prompt:

curl --user jiraUserName:jiraUserPassword  -X DELETE -H "Content-Type: application/json" http://yourJiraInstance/rest/tempo-accounts/1/link/267.

Despite fact that jira claims that in response we will get true or false, in reality I received {"id":267,"scopeType":"PROJECT","scope":10452,"accountId":5,"key":"QASSURANCE","name":"Quality Assurance","linkType":"MANUAL"}. I have no idea why response was like this, but the fact is fact. Response is another then simply true/false.

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5