Copy a Date Picker field value from linked work item to the parent/trigger

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

This article provides an automated solution for when work items are linked to a parent item with different link types, and you want to copy a date time picker value from a linked work item with a specific link type to the parent/trigger work item.

Solution

Use automation to copy the date time field

You can use an automation to copy the value of the date time picker field from a linked issue with the specific link type to the parent issue:

  1. Create an automation with the trigger as per your requirement.

  2. Add a log action to capture the value of a DateTime picker field for a specific linked issue and convert it to your local timezone:

    {{#issue.issuelinks}} {{#if(and(equals(type.name, "<link type name>"), exists(inwardIssue)))}} {{inwardIssue.fields.customfield_1xxx.convertToTimeZone("Your local timezone").jiraDateTime}} {{/}} {{/}}
  3. Store the above value in a variable using the Create Variable action.

  4. To use the created variable in an API, we need to use the date function to convert the value to the appropriate format. The format is:

    {{CreatedVariableName.toDate.convertToTimeZone("your local timzone")}}
  5. Use the Send web request action to update the work item field on the parent/trigger issue. We used the Edit issue API here:

    curl --request PUT \ --url 'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data { "fields": { "customfield_1xxxx":"{{CreatedVariableName.toDate.convertToTimeZone(\"Your local Timezon\")}}" } }

Updated on June 19, 2025

Still need help?

The Atlassian Community is here for you.