{
"update": {
"comment": [
{
"add": {
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Hello There!!",
"type": "text"
} ]
} ]
}
}
}
]
},
"transition": {
"id": "71"
}
}
Above request works with rest api v2, any idea how to make it work for v3 .giving 204 message and adding comment . but ticket is not getting transitioned.
It works only when you have a screen while transitioning the issue!
Using the comment or any other field to update the field while transitioning the issue is redundant
Place the transition screen in workflow to work
cant we do both at same time using edit issue or update issue ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For transitioning Issues, you need to get the transition ID first and then perform the transition
curl --request GET \
--url 'https://your-site.atlassian.net/rest/api/3/issue/WSP-198/transitions' \
--user 'email:token' \
--header 'Accept: application/json'
Get the Transition ID from above Response
curl --request POST \
--url 'https://your-site.atlassian.net/rest/api/3/issue/WSP-198/transitions' \
--user 'email:token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"transition": {
"id": "51"
}
}'
Let me know if you have any queries
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you haven't read my question am trying to do both adding comment and do transitions at the same time .. not just adding comment
Thanks for your comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rajesh Ale
This works for adding comments to an issue
curl --request POST \
--url 'https://your-site.atlassian.net/rest/api/3/issue/WSP-198/comment' \
--user 'email:token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Hello There!!",
"type": "text"
} ]
} ]
} }'
Reference here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.