Hi,
I am new to using JIRA REST API. I have a requirement where i should update JIRA status field by filtering issues using label.should i use curl or jql query?
Thanks!
Thank You! I'm trying below :
curl -D- -u user:Password X GET -H "Content-Type: application/json" https://jirapro.***.com/rest/api/2/search?jql=project+order+by+labels=Pending&startAt=1&maxResults=2" . . But i don't see any results .
Hello,
You first need to find all issues by a JQL query like this:
label = "your label"
You can find all issues with the search rest endpoint:
https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/#api/2/search-search
Then you can update statuses of such issues with this rest api endpoint:
https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/#api/2/issue-doTransition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you curl statement should look like this:
curl -D- -u user:Password X GET -H "Content-Type: application/json" https://jirapro.***.com/rest/api/2/search?jql=labels=Pending&startAt=1&maxResults=2"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To change status, you need to iterate over the result and execute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.