Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Format for start date + business days for due date in task automation

New to Jira so forgive me if I'm missing an obvious reference guide somewhere.

 

I am trying to automate the timeline/due date for subtask that are created when triggered but can't quite get the syntax of the command correct and can't find the correct reference for it.

 

For tasks non depedant on another task I have the start date as  "Start date from Curruent Issue" which works fine, but how do I then say the due date is start date +3 business days. Currently I have {{Issue.Start date.plus business days(3)}} but it doesnt seem to do anything. 

 

Additionally for start date variabilty, how would I reference the due date of a previous sub-task as a start date for a new subtask?

 

 

2 answers

1 accepted

2 votes
Answer accepted
Tim C
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.
Oct 12, 2023 • edited

Hi @Quinn Campbell 

Please try the following syntax ...

{{issue.Start date.plusBusinessDays(3)}}

Sometimes things can get confused when there's multiple customfields with the same name (e.g. "Start Date" v "Start date", etc)

Thus, you can use the customfield ID to ensure it's using the correct one ...

{{issue.customfield_10067.plusBusinessDays(3)}}

I hope this helps.

That was exactly it! Now 2 questions,

How do I solve this syntax issue for my self in the future?

 

How can I make the start date of a subtask relative to a subtask that excuated just before it?

@Tim C an example of what I mean by that is, and I think one of my last big blockers is how do I make the start date of a task the end date of a subtask just ahead of it?

example

subtask A - Start date 1/5/23 (linked to main task which is based on assignment from a form) ------- End date 1/8/25 (+3 days past start date)

 

Subtask b - Start date = subtask A enddate   ------- Enddate = subtask b start date + xDays

How do I get subtask B to referene a feild from subtask A?

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.
Oct 12, 2023

Hi  @Quinn Campbell 

Please take a look at this documentation page to learn about the functions available for date/time fields in automation rules: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

And if you look at the right side of that page near "Show more" you will find many other useful things for creating rules.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events