Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Cloning a Service Project Ticket into a Software Project

Jeremy Snyder
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2024

Hello!  Question for the group.

I have set up a "Raise a Request" as a part of a Jira service project, and am trying to get an automation that clones the request, and sends it as a task to my backlog as a Software Project.  Both are Team Managed Projects

My issue is that in the Service Project, I have a bunch of custom fields that as a part of the request, and I cannot get them to appear (or populate) in the cloned tickets (Service Management).  The ticket IS appearing in the backlog, but not with any of the fields or data that I need.  

In my automation I currently I have 1. "When the Issue is Created" 2. "Then Clone issue into" and have all the custom fields "Copy from trigger" 

Let me know if you have a solution!

 

3 answers

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

Hello @Jeremy Snyder 

Welcome to the Atlassian community.

With Team Managed projects there are two types of Custom Fields that you might have:

  1. Custom fields that were defined Globally for Jira, which you are reusing in your Team Managed project.
  2. Custom fields that you created within the Team Managed project.

 

The problem you are having is probably related to #2.

Custom fields that you create within a Team Managed project are unique to that one project and get a unique field ID in the Jira database.

If you create a field with the exact same name in another Team Managed project that will be considered an entirely different field and get its own unique identifier in the Jira database.

In your Automation Clone Action you might have something that looks like this:

Screenshot 2024-08-29 at 4.24.42 PM.png

The "Custom Short Text" field in the destination project is an entirely separate and unique field from the "Custom Short Text" field of the source project, even though they have the same name.

The Automation rule can get "confused" about where to find the data and where to deposit the data.

The way to ensure the right data is being copied from the correct field and into the correct field is to use the Advanced Editing with JSON (More options) feature.

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

With that you can explicitly identify the destination fields with their custom field IDs rather than their names, and you can explicitly identify the correct source fields with their custom field IDs also.

You will have to identify the custom field IDs for the fields of concern. Information on how to do that is located here:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Look over the documentation, take a moment to digest that information, and let us know if you have additional questions.

Jeremy Snyder
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2024

@Trudy Claspill Thank you for your detailed reply.  You are correct, my issue was #2, custom fields I created in a project. 

I have used /rest/api/2/issue/<issuename>?expand=names to see all the custom fields, and input them into the automation, but I am getting "Unknown fields set during clone, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored "

I am assuming this is because these fields only exist in the service project, where I created them, and not in the software project.  Is there a way around this?  And thank you for your help.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 4, 2024

Team Managed project custom fields can't be shared.

The way to ensure the right data is being copied from the correct field and into the correct field is to use the Advanced Editing with JSON (More options) feature.

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

The only other alternative is for the custom fields to be recreated as Global custom fields that can be used by both Company and Team Managed projects. You would then add those Global fields to both projects. In the Service project you would have to move all the data from the current project-specific fields into the Global fields. You would probably have to make other changes to filters and forms and request types to accommodate that change.

If the Team Managed projects use Global custom fields then the data can be copied directly as I showed in the image in my previous reply.

0 votes
Luka Hummel - codefortynine
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 30, 2024

Hello @Jeremy Snyder and welcome to the community!

If you're looking for a reliable way to clone Jira Service Management tickets into a Jira Software project with all custom fields intact, you might want to explore our app Deep Clone for Jira. It allows you to clone issues with all details, including custom fields, across different projects. The app is designed to handle complex cloning scenarios, which might resolve the issues you're facing with custom fields not populating correctly.

0 votes
Clara Belin-Brosseau
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 30, 2024

Hello @Jeremy Snyder

If you're seeking for an easier way to clone an issue from JSM to Jira Software, you can try our app Elements Copy & Sync that allows you to clone and sync a full hierarchy of issues with all their content (summary, description, custom fields, comments, attachments, etc).

You can check our guide here.

 

The app is for free during 30 days (and it stays free under 10 users).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events