Hi, To move an issue to In Progress there is a dialog which opens up for comments. When doing this transition with API, the API fails with 400. Is there a way pop-up configuration can be detected when transitioning via API and then add comment?
~
Harsh
Hi,
Welcome tot he community
If you have a transition screen with mandatory field you just need to add the field in your request during the API call.
Thanks. To do this, I suppose I can use this API?
/rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This api will show you all field that you can update during the transition.
So in Jira server you just have to call
rest/api/2/issue/{issueIdOrKey}/transitions
in Jira Cloud
/rest/api/3/issue/{issueIdOrKey}/transitions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is what worked for me.. Thanks..
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.