Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error message Missing Transition Identifier? What is the identifier?

Stacy Menigoz April 1, 2021

Here is my code.  I receive a message that I am missing the transition identifier.  What is the identifier?

image.png

image.png

1 answer

1 accepted

1 vote
Answer accepted
Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

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:

Selection_202.png

So it should be 

"transition":{
"id":"5"
}

instead of

"update":{
"transition":{
"id":"5"
}
}

 

Stacy Menigoz April 1, 2021

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

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

SOrry @Stacy Menigoz , my first answer was not complete, I updated it...

Stacy Menigoz April 1, 2021

I did change it to just this, but get the same error:

image.png

 

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.

image.png

Thanks,

Stacy

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

Can you share the whole JSON pls?

Stacy Menigoz April 1, 2021

It's what was in my original post.  But with the update around transition removed.

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

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.

Stacy Menigoz April 1, 2021

{    "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"        }}

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

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"
}
}
Stacy Menigoz April 1, 2021

You made my day.

Thank you so much.

Stacy

Martin Bayer [MoroSystems, s.r.o.]
Community Champion
April 1, 2021

Great, happy to help :) It would be nice, if you will accept the answer :)

Suggest an answer

Log in or Sign up to answer