Forums

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

Auto-transition an epic | Dependant on story under theepic

BrentBot
Contributor
September 7, 2021

Hello everyone,

 

Kind of a gnarly request here. I hope I can explain it correctly.

 

Here are the deets:

I want to auto-transition an epic to CLOSEOUT state when it has been in 100% DESIGN state, but only when the task CLIENT REVIEW under the epic matches the following:

>> custom field DELIVERABLE is 100%

>> the current date is 3 days past the due date.

 

Example here:

CLIENT REVIEW task under EPIC has deliverable field of 100%

>> Due date is 8.1.21
>> Current date is 8.4.21 (I want to make sure we only account business days)
>> Automation transitions epic from 100% DESIGN to CLOSEOUT

 

I want to run this as a job, but how do i account for business days via field issue conditions on a if/then?

 

 

any and all input is much appreciateCapture.PNG

2 answers

0 votes
BrentBot
Contributor
September 9, 2021

What i ended up using was the automation contained in the screenshot - works flawlessly and i am able to run a warning message action and actual auto-transition action against the due date field. if anyone comes across this post please let me know and i can go into more details of the variations

0 votes
Bill Sheboy
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.
September 7, 2021

Hi @BrentBot 

Have you considered splitting your test into two condition components: the part without the date and the one with?

You could then use date/time functions and an advanced compare condition for the date part.  Please look here for some functions to help: https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

Kind regards,
Bill

BrentBot
Contributor
September 7, 2021

Do you have an example of that? so an initial IF statement and THEN for the time in the same rule? I have not used advanced compare except i think 1 time

Bill Sheboy
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.
September 8, 2021

Hi!

You could use one issue field, condition for each test needed, helping to confirm your logic and see problems in the audit log progress.  For example:

  • trigger: scheduled
  • condition: Deliverable equals 100%
  • condition: issue type equals Client Review
  • advanced compare condition:
    • first value: {{issue.duedate.diff(now).businessDays}}
    • condition: greater than or equal to
    • second value: 3
  • branch: for epic parent
    • action: transition the issue
    • action: add the comment

Suggest an answer

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

Atlassian Community Events