Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Assign a JIRA issue via a Webservice

Ade Adekoya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2017

Hello

I have an urgent requirement to Assign a JIRA issue by completing the Assignee and Comment fields via a Webservice.

I normally access my JIRA issue by login via a URL link such as :

https://theglobaldraw.atlassian.net/browse/DBRPT-1948

Manually click on Assign Button, complete the Assignee and Comment fields then click on the Assign Button to save.

Can anybody help with the JIRA Webservice api's I need and authorised login. So I can programtically perform these actions.

Kind Regards
Ade

1 answer

Tarun Sapra
Community Champion
June 19, 2017

You can use curl command or CLi clients or python rest client for JIRA - https://jira.readthedocs.io/en/master/index.html 

Ade Adekoya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2017

Hi Tarun

My JIRA test issue is :

https://theglobaldraw.atlassian.net/browse/DBRPT-1953

I tried the curl command to update the Issue Comment :

curl -D- -X GET -H "Authorization: Basic YWRlLmFkZWtveWFAc2ctZ2FtaW5nLmNvbTpHYW1pbmcxMDA=" POST --data {"body": "This is a comment regarding the quality of the response."} -H "Content-Type: application/json" https://theglobaldraw.atlassian.net/rest/api/2/issue/DBRPT-1953/comment

This command failed can you let me know the correct URL and correct curl command please?

Regards

Ade

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events