Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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!

1 vote
John Funk Community Leader Nov 06, 2020

Hey @Simeon Ross  - 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
Simeon Ross 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 Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

339 views 19 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