Forums

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

Issue Status and Category incorrect in Post Function (Script Runner)

Jeff Abbott December 10, 2020

I have a workflow where I am transitioning a linked parent item when the outgoing children collectively move to the next "Category" of status values.

The issue status is alway set to the value it had BEFORE I selected to transition the state. For example, when an issue transition (Start Work) from To Do to In Progress, the post function script sees the issue in To Do.  I am attempting to refresh the the issue using issueManager.getIssueObject(issue.key) at the start of the post function. 

Do I need to force the transition first?

Jeff

1 answer

0 votes
Nic Brough -Adaptavist-
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.
December 11, 2020

You cannot initiate a transition inside a transition of the current issue.

The status of the issue will not change until the transition has finished, which happens after your post function executes.

Suggest an answer

Log in or Sign up to answer