how to copy asset field value in to Jira cutom field (Text format) value
Asked by NEGAR JALALIAN:

Hi experts

I need your help . in my Jira JC :

I have many asset fields which I need to copy the value of each asset field in to Jira Custom field .

do you have any common experience or any solution ?

I want to use Automation for Jira


Answers:
author: Jack Brickey
body: Hi [@NEGAR JALALIAN](/t5/user/viewprofilepage/user-id/752794) , you should be able to use smartvalues for this. See if this post helps you out - [Copy-Assets-object-attribute-to-issue-custom-field](https://community.atlassian.com/t5/Jira-Service-Management/Copy-Assets-object-attribute-to-issue-custom-field-via/qaq-p/2241322)

comments: author: Jack Brickey
body: Hi [@NEGAR JALALIAN](/t5/user/viewprofilepage/user-id/752794) , i'm pulling the question back into this thread, so that conversation between the two of us it's clear or future readers.

if you wish to copy one field into another, you can use the edit issue action. in the action, you select the fields that you wish to edit for each field that you edit do you set a value and in the value field you can use a smart value, for example...

1. Select the source field from the drop down (not the custom field ID)
2. in the value box use {{issue.platform_temp}}


author: NEGAR JALALIAN
body: Hi Jack

I'm lost . I don't know how to add my source field

platform_temp is my destination field which is normal text custom field .

I wan to select the source field but when I type {{issue.Platforms_14101.Name}} , nothing appears


author: Jack Brickey
body: Can you share a screenshot of your rule so I can get a visual of where you are entering this info?


author: NEGAR JALALIAN
body: sure :

![platforms.png](https://community.atlassian.com/t5/image/serverpage/image-id/326144i886B8F7502EA03AF/image-size/large?v=v2&px=999 "platforms.png")also I tried this : ![platforms temp 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/326147iAB94F7CE00ACBD5E/image-size/large?v=v2&px=999 "platforms temp 2.png")

but none of them worked


author: NEGAR JALALIAN
body: I also tried this but it didn't help :

![platforms temp 3.png](https://community.atlassian.com/t5/image/serverpage/image-id/326155iAEEBCD4715373FA4/image-size/large?v=v2&px=999 "platforms temp 3.png")


author: Jack Brickey
body: Thank [@NEGAR JALALIAN](/t5/user/viewprofilepage/user-id/752794) . Let's try

{{issue.customfield_14101}}

also can you add a log action to store the value of the above? Then by viewing the audit log, you will understand what the smartvalue is equating to which in turn help you zero in n the correct smartvalue syntax.


author: NEGAR JALALIAN
body: you saved so much of my time ! it workkkkkeddddddddddddddddddddd

thank you sooooo much !


author: Jack Brickey
body: Glad it worked out! Sorry it wasn't quicker.


author: NEGAR JALALIAN
body: hi Jack , thanks for your comment . sorry if my q sounds sily . but how does smart value works ?

my source field is : {{issue.customfield_14101.Name}}

my destination field called : platform_temp

I tried automation for Jira based on a transition , this change happens , but I don't know how to tell the source field


Tags: asset-management

data-center