Forums

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

Populate Date if empty else do not change the date

Mary Mark December 16, 2022

Hi Atlassian Community,

I have a workflow with 4 transitions.

For example: A, B and C, D.

When I go into B or C or D, populate the current date. The field is "Start Date"

For example, I go into B today with current date as December 16

Tomorrow if I go into C, the current date should not change to December 17 and remain as December 16 because date has already been populated unless there was no previous "Start Date" then populate it with the current date. 

 

Is there a way to achieve this via JSU post function. 

 

Please advise on any ideas. Any help is greatly appreciated.

Thank you. 

1 answer

0 votes
Andrew Laden
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 16, 2022

Since you have JSU, you can do this with JSU preconditions.

In work workflow post functions, first use the Value Field precondition (or even the fields required precondition) to test if the start date field is empty, then you can use the Update any field postfunction, and configure it to check the value of the pre-condition first.

Suggest an answer

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

Atlassian Community Events