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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Multiple subtasks with sequential due dates Edited

Hello! I have been trying to use JIRA Automation to allow for a custom date field to automatically set the due dates for 47 different subtasks - each being 5 business days a part. I have found the smart values to successfully have my custom date field and sub task due date fields communicate with each other - however I would like each subtask to be SEQUENTIAL, with different due dates. The only method I've found sets all 47 different subtasks to the same due date. So for example, my custom field date is set to 31/08/2021, I would like my last 3 subtask due dates to be 24/08/2021, 17/08/2021, 10/08/2021 - so on for 44 more steps. So the first subtask due date would be 235 weeks before my custom field date (5 biz days x 47 steps) Please let me know if I can provide other information, or if this is  even possible. Ideally I want to create a trigger rule - not use a plug in. 

1 answer

1 accepted

0 votes
Answer accepted

Hi @kfarnen 

There is no built-in loop counter to help you do this.  You might be able to do it using Create Variable, and repeatedly replacing the value with increasing date values:

{{issue.myDateField.plusDays(5)}}

However... I wonder how are you enforcing 47 sub-tasks in a sequential order without *manually adding them*?  If you are cloning or adding them within a rule, there is no guarantee they will be in the order you wish because of asynchronous rule processing.

Let's suppose you have some numeric indicator in the sub-task (e.g. in summary or another field).  You could use that as a multiplier of the 5 day increment, greatly simplifing the rule.

Best regards,

Bill

Thank you so much, Bill. Yes, they were manually added in a sequential order but will now auto create from a rule. I've tested this multiple times and they've successfully stayed in sequential order. I was ultimately able to get this done by increasing date values within my rule, just as you suggested. The automation template library Atlassian shared a few days after my post has been really helpful as well. Cheers. 

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

874 views 14 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you