Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,975
Community Members
 
Community Events
165
Community Groups

When splitting a Jira issue, is there a way to copy the custom fields?

According to this document, when you split an issue it doesn't copy custom fields. 

But I have a required custom field (platform) that I want to make sure it copied. Otherwise every issue in the system has a platform value except issues created with a split. No bueno!

I'm not sure exactly how an issue split works but, presumably, it has to create a new issue so it has to go through the create issue transition? Is there some way I could add something to that? 

I'm in Cloud using (obviously) jira software in an agile board (in this case Scrum). 

2 answers

1 accepted

0 votes
Answer accepted

Hello Dave,

Thank you for reaching out to Atlassian Community!

When splitting an issue, it's not possible to copy custom fields on Jira Server or Cloud. 

There is a feature request suggesting the implementation of this ability:

Please, click on vote and watch to receive updates about the feature.

The documentation you mentioned is related to Server and the Cloud documentation has more details about what happens when an issue is split:

- The new issue will be of the same issue type as the original issue. For example, if you split a story into two or more issues, the new issues will also be stories.
- The new issue will have most of the same details stored in the original issue, including priority, component, label, etc.
- The issue details that won't be copied over include work log, comments, issue history, issue links, etc — though the original issue will be linked to the new issue.
- The new issue will have the summary that you entered upon splitting the issue.
- If the original issue has estimates, you'll be able to enter estimates for the new issues as well. You can also update the estimate of the original issue as necessary.
- The issue status also returns to the first step of the corresponding workflow, and the resolutions are cleared.

Create an issue and a sub-task

Regards,
Angélica

Hey Dave! 

I had a similar use case and was able to figure this out today with the automation tool. Here's how I got it to work:

 

1. Use the Issue Linked trigger pick the Issue split type

2. Create a branch rule with the Destination issue type

3. Add the Edit issue action, select the 'Copy from...' option and click on the default 'Current Issue' value and change to 'Trigger Issue'

 

Best of luck!

Caurie

Hi Caurie,

thank you very much! With the automation tool, the values are taken over when splitting. Very good. That is exactly what we needed.

https://community.atlassian.com/t5/image/serverpage/image-id/130676iAD16C808AC0C4B2D/image-size/large?v=1.0&px=999

Best regards

Michael

Awesome! I didn't even realize you could change the from to the 'Trigger Issue' so that cleans up my automation and eliminates the 'Create Variable' component. I updated the above steps to match the streamlined process. 

Thanks!

Like Michael Gloeckner likes this

Any thoughts on how to deal with fields such as the "Team" field that comes from Tempo Planner app which is not an "available" field to be selected in the  "choose fields to set" step of edit issue? 

I can hardcode a team number into "additional fields" JSON section, but we would need to somehow make that JSON reference dynamic and simply a copy of the parent issue team number:

{
    "fields": {
        "customfield_11001": "<team number>"
    }
}

Like Michael Gloeckner likes this

Hi IT Platforms, you can copy the Team field by using this snipped:

{
   "fields": {
      "customfield_10100" : "{{triggerIssue.fields.customfield_10100}}"
   }
}

This is what we use for the Advanced Roadmap Team Field. For sure your Custom Field ID will be different, so this needs to be adjusted before you can run the automation in your environment.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

249 views 13 7
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