Forums

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

Jira Automation - How to log the date when we first time transition the status into?

Anthony.Ding
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 12, 2023

Hi there,

 

Currently I'm using the Jira Automation to log the specific date with some Status transition.

For example, we have Custom Field - "Dev Start Date" & "Actual Dev Compl Date" as shown as below.

image.png

The automation was set to when status transit from "Ready For Dev" -> "Dev" then Log the date for "Dev Start Date". 

And when status transit from "Dev" -> "Ready For Code Review" then Log the date for "Actual Dev Comple Date".

My question is how to ensure we just log these two fields only once(means we only need to log the data the first time we transit the status into)? Cuz we do have more workflow that will back to "Ready For Dev" after the "Code Review".

 

Regards,

Anthony

 

 

 

2 answers

2 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
January 12, 2023

Hello @anthony.ding 

Modify your Automation rule to only update the field if it is empty. The field will be empty the first time the transition occurs, so the automation rule will update it. If the transition occurs again, the field will not be empty (it was filled the first time the rule ran) and so the rule will not update the field again.

Anthony.Ding
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2023

Thanks Trudy for the answer, the issue was resolved.

0 votes
Answer accepted
Jack Brickey
Community Champion
January 12, 2023

Hi @anthony.ding , there are two ways to achieve this that I know of....

  • Add a label when first executed and have a condition that checks the presence of the label
  • Use a hidden property that indicates the rule was executed

Here is an old post that explains this well - How-can-I-ensure-an-Automation-rule-only-runs-once-for-an-issue 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events