The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Forumla for future date

Deleted user
March 22, 2023

N00B alert!  :) 

 

I am trying to find a date that is 6 months before the End Date.   The field I am trying to update would be called 6 Mth Expiration.  

 

I did review this page. But I am not sure how I reference each field.  

 

Can someone help me write the value for the automation? 

 

Thanks! 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Esther Strom
Community Champion
March 22, 2023

Hi, @[deleted] ! 

If you're looking to set the date 6 months prior to a specific date field value (i.e. End Date) when the End Date field value changes, here's what an automation rule could look like. (Note that I'm using fields called Due Date and Planned End Date instead since I already have those fields.)

 

2023-03-22 12_55_35-Mouse Highlight Overlay.png

Deleted user
March 22, 2023

WOW!  That worked!  thank you!  

Like Esther Strom likes this
1 vote
Riley Venable
Community Champion
March 22, 2023
Hi there! To reference the End Date field in your Jira issue, you can use the "{{issue.End Date}}" placeholder in your automation rule. To calculate the date that is 6 months before the End Date, you can use the JQL date functions in the Jira Cloud API. For example, you can use the JQL query "updated <= -6M" to find issues that were last updated more than 6 months ago. To populate the 6 Mth Expiration field with this calculated date, use the "Edit Issue" action in the automation rule and set the value of the field to "{{now(-6M)}}". Hope this helps! Let me know if you have any further questions.
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events