Hello!
customfield_13602) in both projects.{
"fields": {
"customfield_13602": {
"key": "{{triggerIssue.customfield_13602.objectKey}}"
}
}
}Hi @Венера
Welcome to the community.
Before creating the new issue, store the value to the assets field of the trigger issue in a variable, make sure the variable get the key of the assets object.
example for creating variable: {{issue.customfield_12345.Key}}
In the create action, set the asset field with smartvalue Key = {{variable_name}}
I agree. Even in Cloud, it’s often a good idea to first store the Value after fetching it and then use it in the post function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Венера
Welcome to the Atlassian community.
Referencing this KB:
How to copy Assets fields when closing issues by using Automation for Jira
If it is a single value field then you should be able to set the Assets Object field during the Create Issue action using JSON code;
{
"fields": {
"customfield_13602": {
{triggerIssue.customfield_13602.asJsonObjectArray("key")}
}
}
}
I don't have a Jira/JSM Data Center where I can test this to confirm it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello and welcome @Венера
I have a pretty similar use case, but I solved it a bit differently.
If you are really cloning the issue, and not creating a brand new one from scratch, then I would first try the native clone options in Automation. During the Clone issue action, you can already copy field values from the original issue at the same time, and in cases like this that is often much simpler than trying to set the Assets field afterwards. You must make sure this field are active in another project.
So for me, the first question would be: are you truly doing a clone, or is it more a create new issue based on another one use case?
If it is a real clone, I would definitely test the built-in field-copy behavior first, because that should normally work much better than adding extra update logic afterwards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thank you for your suggestion!
To clarify: I am **not using the "Clone issue" action**. My workflow uses the **"Create issue"** action to generate a brand new issue in Project B based on the trigger from Project A.
So the process is:
1. Trigger: Issue created in Project A
2. Action: **Create new issue** in Project B (not a clone)
3. Goal: Copy field values from `{{triggerIssue}}` to the newly created issue
Since it's a fresh creation (not a clone), the native clone options don't apply here. I need to map the Assets field value explicitly during or after the "Create issue" action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are using Create issue and not Clone issue, then I would not expect the native clone behavior to help here.
In that setup, Automation is creating a completely new issue in Project B and trying to carry over the Assets value from {{triggerIssue}}. That is a different scenario than standard clone-based field copying.
Since your standard fields are copying correctly, but the Assets field stays empty without any audit log error, that points more to how Automation is handling that specific field during issue creation. It looks less like a screen or field ID problem and more like an Assets population/linking problem.
In JSM Data Center, that usually needs a different approach. Simple field mapping during Create issue often is not enough for Assets fields. In many cases, the more reliable way is to:
create the issue first
then update/link the Assets field explicitly usually via REST API or Send web request.
So yep, I would stop focusing too much on screens here.
The more likely root cause is how the Assets value is being written, and the practical next step is usually to move to an API-based update after issue creation for that field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.