How to troubleshoot update Issue Status by integration Jira User?

Edgars Everts January 29, 2021

Hi,

Have tried to update Status with Integration Jira User by sending Transitions ID ( Jira REST API ), which is valid by Workflow.

POST /rest/api/2/issue/{issueIdOrKey}/transitions

{
"transition": {"id": "17"}
}

It fails with message:
It seems that you have tried to perform a workflow operation (<Action Name>) that is not valid for the current state of this issue (ISSUEKEY-17). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.
But ISSUEKEY-17 has no history details.

But GET /rest/api/2/issue/{issueIdOrKey}/transitions for Integration Jira User

returns no TransitionID.

Just wonder is it Integration Jira User role & permission issue for this specific project?
Any ideas what to check?

If Issue Assignee =  Integration Jira User, then GET returns valid transition ID, and POST /transitions will update Issue Status.

But as Issue Status should be updated by integration, most of the cases Assignee will not be the Integration Jira User.

Just wonder is there an option to update Issue Status with transitions regardless Issue Assignee User??

Looking forward your response.
Thank you in advance!

Kind regards

 

1 answer

1 accepted

1 vote
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 30, 2021

Hi @Edgars Everts ,

in general the same things are available via REST and Jira GUI for the user. So if you want to be sure, that this user can perform the transition, just log in as this user and try to do the same operation via Jira GUI.

If getting available transitions return empty result for this user, it is probably because your user really don't have all the necessary permissions.

The user needs to see the project (Browse Projects) and needs to have ability to transition issues (Transition Issues). Another permissions could be required, if you also need to modify issue somehow during transition or you resolving it etc.

Could it be, that in your permission scheme is something like that Current assignee has the Browse Projects/Transition Issues permission or there's conditions at your transition, that only assignee can perform this transition?

Edgars Everts January 31, 2021

Hi @Hana Kučerová ,

Thank you for your answer. You help me a lot.

Jira Integration User indeed has valid role & permissions.

It turns out that there are Workflow conditions for transition, that only the Assignee can change it.

workflow-transition-conditions.png
Will ask Jira administrator to add condition for Jira Integration User.

Nice to have a solution without <SEN> ;)

Thank you.

 

Kind regards

Like Hana Kučerová likes this

Suggest an answer

Log in or Sign up to answer