Automatically copy value from field A to field B

Sabina Alistar
Contributor
August 7, 2023

This seems very simple but I can't seem to get the Automation to work. I know it currently doesn't play nice with some JPD fields but hoping this is doable.
I just want to copy the dates on our ideas from Start date to Project start, and from Due date to Project end. The info is already in the ideas, in the Start date and Due date, just need to copy it over. The JPD fields aren't in the automatic list so I tried doing the advanced JSON to no avail. 

Can this be done? What's the right syntax? Thank you!

2 answers

1 vote
Frank Herr
Contributor
August 8, 2023

Was working on this just last night. Was trying to set a known date field's value in a new custom date field, but the new custom date field would not show in the automation field dropdown. Eventually had success with the following:


{"fields":
  {"customfield_[# of the custom field you want to set]": "{{issue.customfield_[# of the custom field you are copying the date from].mediumDate}}"
  }
}


  • Retain underscores and quotations
  • Disregard "[" and "]" characters
  • Two spaces before the second and third lines


In your case, with copying the date multiple times, I would imagine you would need to perform this operation a few different times - one per field edit. Others possibly know of a more sophisticated or efficient approach.

Frank Herr
Contributor
August 8, 2023

If this does not work, try deleting ".mediumDate" as Jira's various date formats can be tricky to handle.

0 votes
Hermance NDounga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2023

Hey Sabina, 

The format of JSW data fields and JPD date fields aren't matching - in Jira Software you can only have a specific data while in Jira Product Discovery, it is a range. at the bottom of this doc you can see the formatting for Jira Product Discovery fields : https://support.atlassian.com/jira-product-discovery/docs/automate-actions-in-the-delivery-panel/ 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events