Forums

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

Automation to copy Date field to Date/time field

Gregory Kremer
Contributor
October 31, 2023

Hello, Jira experts,

Have a need to automate the following - when CustomField1 (Date format) is changed in one project, CustomField2 (Date/Time format) in another project needs to be updated as well.

I'd greatly appreciate a solution. Please let me know if you have any questions.

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
October 31, 2023

Hello @Gregory Kremer 

First, you'll have to create a multiple project scoped rule. Those can be created only through the Global Automations screen available to Jira Admins under the System settings.

You'll need to name both projects in the scope of the rule.

How do you know which destination issue needs to be changed? Is that issue linked to the first one? If so, it it always the only linked issue, or linked using a unique link type?

Then the structure of the rule starts like this:

TRIGGER: Field value changed
Field: CustomField1
CONDITION: Issue Fields Condition
Field: Project
Condition: equals
Value: Project1

 

 The next step depends on how you note in the Project1 issue which issue needs to be changed.

Gregory Kremer
Contributor
October 31, 2023

@Trudy Claspill Hi Trudy. It is nice "talking" to you again. While double-checking my rule again, I have found my problem. Have a great rest of the day.

0 votes
Bill Sheboy
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.
October 31, 2023

Hi @Gregory Kremer 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

You could do what you ask with a global (or multiple-project) scope rule, branching to the issue in the other project, and then using the date-time functions to convert the date field to a date/time field.  That last step may be relevant to control the time part of the field, if needed.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events