Workflow conditional post funtion

Todd Winton November 14, 2014

We have recently been asked to report on when an issue enters the status in progress.  My initial thought is to have a post function set the start date based on the start progress transition.  However, if you stop progress and start progress again, this would reset the date.  Is there a way to conditionally populate this field only if it is empty?  Or is there a better way to do this?

2 answers

0 votes
Peter Bengov
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.
November 16, 2014

It might be useful to do the following - using Conditions together with Post Functions:

  • Duplicate the specific transition you wanted to add a Post Function to.
  • Set a condition for that copied transition based on JQL. Something like "start date" is not EMPTY. Making this transition show only when a ticket already started progress before. This transition won't have a post function to populate start date field. 
  • The original transition will have the opposite transition, like "start date" is EMPTY. And will have a Post Function to populate start date field.

Hope it helps

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2014

Yes, but no.

Post functions always run when the transition is executed, so "no"

But if you need to do this, you write the post function with it in mind - put something like "if date not empty, exit" at the top of the code for it.

Suggest an answer

Log in or Sign up to answer