Forums

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

Error when performing more than one transition via rest api: "It seems that you have tried to ..."

Jens Kisters //SeibertSolutions
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2019

Hello,

i need to execute some complex opration on roundabout 100 issues.

As i ran into several timing issues (result from post function 1, was not available in post function 2, index was not updated yet etc)

i decided to split up the operation in three transitions and trigger the transitions via rest using PHP and curl.

To give the system even more time to finish the steps on each issue i first process step 1 on each issue, then step 2 on each issue and so forth,

i also added a delay between each rest call.

But nevertheless the transitions wont execute when i trigger them,

step 1 is executed and when trying to perform step i get

"It seems that you have tried to perform a workflow operation (XXXXXX) that is not valid for the current state of this issue (XXXXXX)"

It takes 10 seconds between step 1 and step 2 on the first issue, but this doesnt seem to be enough.

When i trigger the transitions via the issue view they work just fine on the very same issue,

i can even trigger them faster than i do via rest.

 

thanks in advance

Jens

1 answer

1 accepted

0 votes
Answer accepted
Jens Kisters //SeibertSolutions
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2019

Sometimes it helps to talk to a colleague...

There was a "in group" condition on the first failing transition that evaludated as true for my test user i used to verify the transitions trigger fine via jira, but not for the user i use to authenticate against the rest API.

 

So when you encounter this message, check your conditions and take into account the user you are logged in with.

 

Cheers

Jens

Suggest an answer

Log in or Sign up to answer