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

How to calculate dates in jira automation based on field in the parent issue

In automation rules I am trying to calculate the due date for tasks based on the "Go live date" set on the parent task. 

To do this I have created a variable called GoLiveDate after the creation of the task with the "Go live date" custom field. 

The variable has the smart value set to {{issue.Go Live Date}}

Then I have created a branch to create a number of sub tasks.

When I create the subtask I am using a smart value to calculate the due date. 

For example if a task must be complete 3 days before go live then I would use the smart value {{GoLiveDate.minusDays(3)}}

However the due date is not being populated when I test this. 

I know the variable is working as I am printing it into the summary of the subtask and it is correct so I dont know why it wont calculate the minus days and populate the due date. 

 

Any help appreciated 

1 answer

1 accepted

1 vote
Answer accepted

Hi @Seán Curran 

It seems like it because of the type of the field.

Try this.

{{GoLiveDate.toDate.minusDays(3)}}

Let me know if this works.

Ravi 

Hi @Seán Curran 

In addition to what @Ravi Sagar _Adaptavist_ suggests, please consider posting an image of your entire rule and a copy of the audit log from a rule run.  That may provide some context to indicate what is happening.

Best regards,

Bill

Taranjeet Singh Community Leader Feb 09, 2021

@Seán Curran I agree with @Bill Sheboy

Please provide the screenshot of your automation rule configuration and the audit logs for the rule, so that you can get specific help.

Like Ravi Sagar _Adaptavist_ likes this

Nice

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,193 views 8 28
Join discussion

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