The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Is it possible to make transition and chanhe custom field value in one rest request?

aas
Contributor
March 10, 2020

I try to do transition and change custom field value in one http request via JIRA rest api and have no luck.

This is example curl -i -u"user:password" -H "Content-type: application/json" -d "{\"fields\":{\"customfield_14009\":{\"id\":\"someId\"}},\"transition\":{\"id\":\"someId\"}}" -X POST https://myjira.com/rest/api/2/issue/issueIdOrKey/transition 

And have 404 response.

What is the mistake?

I can do this only with two requests:

1. POST request to rest/api/2/issue/issueKey/transitions  -d "{\"transition\":{\"id\":\"someId\"}}" to do transition

2. PUT request to rest/api/2/issue/issueKey/ -d "{\"fields\":{\"customfield_10000\":{\"id\" : \"someId\"}}}" 

Is it possible to use one request to do it? 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question