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

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

Jira Automation to Copy Target Start / End to Cloned Issue


I'm trying to setup an automation that will copy values from Target Start and Target End to a linked issue. I have the automation set up and can get the cloned issue updating, but I am having trouble with the Target Start / End fields that are created by Advanced Roadmaps. 

I have the 'Edit issue' action running on linked issues, and am using the Additional Fields to set these values. If I use the following, the dates are copied but are one day behind the trigger issue. 

"fields": {
"Target start": "{{triggerissue.Target start}}",
"Target end": "{{triggerissue.Target end}}"

If I try to work around this by using .plusdays(1) (as in below) then I get 'Error parsing date string'. 

"fields": {
"Target start": "{{triggerissue.Target start.plusDays(1)}}",
"Target end": "{{triggerissue.Target end.plusDays(1)}}"

Where am I going wrong here? 


2 answers

1 accepted

2 votes
Answer accepted

This morning I have found a solution for this problem. When using the Clone Issue (or create/edit) function in Automation for Jira, setting the following under additional fields will clone the Target Start or Target End values and can handle date manipulation. 

Replace customfield_12345 with the id of your Target Start or Target End field. 

"fields": {
"customfield_12345": "{{issue.fields.customfield_12345.toDate("yyyy-MM-dd").plusDays(1).format("yyyy-MM-dd")}}"
John Funk Community Leader Mar 26, 2021

Sounds like a good solution!

@Steven Drury I am having the same issues you had, not letting the target start start/end date be formatted with yyyy-MM-dd format. I am following what you posted but am still not getting it. Is there any way you could post your full JSON script so I can see what im doing wrong?

1 vote
John Funk Community Leader Nov 06, 2020

Hey @Simmo  - This is the second time in a couple of weeks where people are having trouble in Automation with the Target Date. It "seems" to be a typical date field type, but it doesn't behave as one when using Automation. Thoughts?

Hey guys,

According to this Code Barrel ticket, the Portfolio and Advanced Roadmap fields are not supported yet:

@Steven Drury   To learn which fields are in the JSON, and so potentially have smart values, please see this how-to article to use the REST API to grab an example issue for investigation:

Best regards,


Like John Funk likes this

Thanks @Bill Sheboy and @John

Glad I'm not the only one having an issue. I'm guessing it will eventually fall into support, but for now it's in limbo. The dates do have JSON fields available and can render as smart values, but any attempt to use the date functions to manipulate the fields or render as a different format fails (most functions under this link)

Like # people like this
Simmo Atlassian Team Nov 10, 2020

Hi @John Funk & @Steven Drury ,

I'm not familiar with Advanced Roadmaps but it sounds like they could be in a format / form that we don't understand. 

What I'd suggest you try is visiting and seeing if you can use the toDate smart value then the plusDays and see if that helps?



Like Steven Drury likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

501 views 16 17
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