Here is my code. I receive a message that I am missing the transition identifier. What is the identifier?
Hi @Stacy Menigoz, welcome on the community :)
Identifier of the transition is property "transition" -> "id". It is equal to the ID of the transition which can be seen in brackets in workflow configuration:
So it should be
"transition":{
"id":"5"
}
instead of
"update":{
"transition":{
"id":"5"
}
}
Hi, I am passing it "id": "21".
I removed the update part but still get the same error.
But it says I need the identifier is that something else?
Thanks,
Stacy
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.
I did change it to just this, but get the same error:
This is what it shows when I get the transitions for this JIRA, do I need to pass anything else tied to this transition? Because it doesn't make sense that this isn't working.
Thanks,
Stacy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share the whole JSON pls?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's what was in my original post. But with the update around transition removed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, I can see you have problem on row 11-12. If you provide TXT form of the JSON, I can validate it for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{ "update": { "comment": [ { "add": { "body": "Bug has been fixed." } } ] }}{ "fields": { "customfield_12710": { "value": "Non-security Incident", "id": "11431" }, "customfield_12737": { "value": "Solved (permanently)", "id": "11682" }, }} { "transition": { "id": "21" }}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, so it did not lie. I tried to validate JSON using https://jsonformatter.curiousconcept.com/# and it says there are more JSONs at once.
I guess that corret JSON should be something like:
{
"update":{
"comment":[
{
"add":{
"body":"Bug has been fixed."
}
}
]
},
"fields":{
"customfield_12710":{
"value":"Non-security Incident",
"id":"11431"
},
"customfield_12737":{
"value":"Solved (permanently)",
"id":"11682"
}
},
"transition":{
"id":"21"
}
}
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.
Great, happy to help :) It would be nice, if you will accept the answer :)
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.