Deal all,
IN our Jira project we have workflow transition which contains Screen for populating some field before transitioning.
When calling this screen transition from Jira API, even by providing corresponding field supposed to be filled from the screen, the transition did not occurs.
Did you face the same behavior ?
Note :
I know a workaround would be to create an identical transition without the screen BUT that is not the goal.
Thanks for your return
Hello @serge calderara ,
Yes, you have to keep only those options in the payload which are available in the transition. Otherwise it will not work.
Additionally you'll have to provide transition id to proceed. Suppose, there are 2 transitions available, you have to specify the transition id.
First try GET:
https://docs.atlassian.com/software/jira/docs/api/REST/9.5.0/#api/2/issue-getTransitions
Then try POST:
https://docs.atlassian.com/software/jira/docs/api/REST/9.5.0/#api/2/issue-doTransition
Below is the sample payload
{
"update": {
"comment": [
{
"add": {
"body": "Comment on transition via Postman. Any field update only works, when transition screen is present with fields. - In Progress"
}
}
]
},
"transition": {
"id": "11"
}
}
BR,
Nicketa
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.