Forums

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

How to prevent bulk change to break "last of" functionality in Workflow Postfunctions

Thilo Brause
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.
March 29, 2021

We have a Set of Issue of Type A connected to one Issue of Type B.

We have a postfunction on a transition of Type A saying:

If (this is the last Issue of Type A which executes that transition)

 {do the transition of the connected Issue of Type B.}

That works so far, except when somebody uses a bulk change on that transition to do the transition on the last issues (several!) of Type A. In that case - as all transitions are done inside on Transaction - none of these transitions is the last one. So the transition of Type B is not executed.

How can we avoid that problem?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events