Forums

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

Cloning a ticket does not copy linked asset

Jeroen Gouma
Contributor
January 30, 2023

We have a monitoring application which creates tickes in Jira Servicedesk via API call. 1 of the fiels populated is the asset from the Jira Assets. This works fine.

However, each Servicedesk is cloned into another project for a specific team. This works fine except for the link to the asset. This means the consultant can not click to the asset involved. Issue types and forms are the same on both sides.2023-01-30 13_24_26-Window.png

Customfield_10681 is the field holding the asset-id.

Tried a lot of things, but I think I overlook some small thing :-(

Any help would be appreciated!

 

1 answer

0 votes
Paul Ceronio
Contributor
May 26, 2025

@Jeroen Gouma ,

Hi Jeroen,

I am facing the exact same issue of trying to copy the the linked asset to the cloned issue in another project. Did you solve this in the meantime? Could you share how, please?

Best regards

Paul

Jeroen Gouma
Contributor
May 26, 2025

Hi Paul,

we did not manage to solve this. This, and some other issue's, forced us to redesign the implementation.

All monitoring events now go directly to the correct project (makes sense at the end).

So sorry, no solutions on hand.

Kind regadrs,

Jeroen

Like Paul Ceronio likes this
Paul Ceronio
Contributor
May 26, 2025

Hi Jeroen,

Thanks very much for your reply.

For my requirements, I just managed to implement the automation recommended in this support article:

https://support.atlassian.com/automation/kb/how-to-copy-assets-fields-when-closing-issues-by-using-automation-for-jira/

(Even then, it took some time reformatting of the JSON before it would work... :))

The cloning rule now looks like this:

image.png

The JSON code:

{
"fields": {"customfield_10400": {{issue.customfield_10400.asJsonObjectArray("key")}}
}
}

(Replace "customfield_10400" by the respective Assets field identifier in your instance.)

Not sure this is exactly what you were looking for, but I'm partially posting this here for anyone who might want to take a look and for my own documentation of course.

Kind regards,

Paul

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