Forums

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

project automation for date

Mike Joyce August 18, 2025

Does anyone know the formula to convert QTR Start (issue type Initiative) to start date to help build Gantt and Plan timelines?

I have something like this, but don't see it working:

When value changes:
  QTR Start
Then edit issue field:
  Start date
  {{issue.qtr_start.plusDays(18)}}

2 answers

0 votes
Mike Joyce August 19, 2025

So I learned that QTR start is not a date field, thus adding days to a non-date field simply doesn't work.   But....
QTR Start  automatically enters first date of the quarter to QS field !   Thus you can take QS  date value and add it to 'Start Date'  allowing for Gantt and Plan roadmaps to render timelines.    Edit issue:
     Start date
            {{issue.qs}}   

0 votes
Duc Thang TRAN
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.
August 18, 2025

Hello @Mike Joyce 
Is QTR Start a date field? If yes, here is the syntax:
{{issue.QTR Start.plusDays(18)}}

Mike Joyce August 19, 2025

it is not,  good catch and thank you for tip 

Mike Joyce August 19, 2025

also...  in using {{issue.qs}}   that works.   Trying  {{issue.qs.plusDays(5)}}  does not unfortunately.   

Duc Thang TRAN
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.
August 20, 2025

@Mike Joyce 

When it makes a log action with this smart value {{issue.qs}},
what is returned? Maybe {{issue.qs.plusDays(5)}} doesn’t work because that is not a date value and can’t be combined with this.
I’m sharing a few things I’m using that may help you, but they need to be adapted to your context.

Convert a text field to date time value 

Create variable  : Datetime with  smart value  {{issue.comments.last.body.substringBetween("Date Time :","Email :")}}

Convert to date time value : 

{{Datetime.ToDate("dd/MM/yyyy HH:mm:ss")}}

Mike Joyce August 20, 2025

What we tested and found to work was the need to break this into two steps.

1. Edit 'Start date' with  {{issue.qs}}

--  just for good measure fetch 1 sec delay

2. Edit start date with   {{issue.Start date.plusBusinessDays(5)}}

 

and that worked very well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events