I am using JIRA Software 30 days trail cloud license.
There i am trying to update the comment as well as transition id of issue in a single api call for scrum project issue but unable to do so.
Api consuming :: POST /rest/api/2/issue/{issueIdOrKey}/transitions
Method: Post
payload:
{
"update": {
"comment": [
{
"add": {
"body": "To Do"
}
}
]
},
"transition": {
"id": "11"
}
}
Using above call issue transition changed but comment not updated in the issue.
Thanks,
Deeksha
Issue have a lots comment, I suppose API cannot identify which one You mean.
Look here https://docs.atlassian.com/software/jira/docs/api/REST/8.1.2/#api/2/issue-updateComment
B.R.
Hi @Andrew ,
api :: https://docs.atlassian.com/software/jira/docs/api/REST/8.1.2/#api/2/issue-doTransition
This specifies in payload that we can send the transition id as well as comment using the same api call. But i am unable to do that. Please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Deeksha Rastogi ,
I have checked with REST client.
I can change transition with /rest/api/2/issue/DEMO-2/transitions but cannot add comment.
body:
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}
]
},
"transition": {
"id": "41"
}
}
I can add comment use /rest/api/2/issue/DEMO-2/comment
I suppose docs has mistake. Looks like we cannot change transition and comment in one REST.
B.R.
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.