I am using automation to copy an attribute to a jira text field. I use Edit Issue action and this is what I use in the field
{{issue.customfield_14701.Part Description}}
The log shows that it was successful but the jira field doesn't have any data in it. I added a Log action to the rule but it also doesn't show that it did anything.
When I just use the asset field {{issue.customfield_14701}} to Edit the custom field, I get the Name of the asset selected in the asset field in the jira issue.
How do I add attribute data to the jira custom text field?
Can you try the following:
Store the information into a variable.
Create a variable based on {{issue.customfield_14701.Part Description}} and then use a log action to see what the result is.
If you get a result, then in the edit action set the Part Description, based on the created variable.
I tried that but no luck. It still won't populate the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As @Tessa Tuteleers asked, are you on Jira Cloud or on-prem (server/DC)?
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.
Hi @Patricia Molina ,
Welcome to the community!
You syntax should be correct. The syntax to get the value of an attribute is
{{issue.customf field name.attribute name}}
Good that you are already logging the response to debug, and checked that you can access the object in the field!
If you don't get a value, check the following thing:
Please let us know what you find!
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Tessa Tuteleers for the help. I did verify that the Part Description in the object does have data and that it is a text field. I also made sure I have the correct name in the smart value.
The automation shows that it was successful
but the field in the issue is still blank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Patricia Molina ,
just to be sure, are you in jira cloud or on prem?
Because your attributes have a ":" behind there name, I don't think you are on jira cloud, is this possible?
If this is the case, you can only get the key or name, see documentation here.
If you want to get the data, you will need to get it with an API call. How to do this you can find here, and the specific call is documented here.
You can use the key in the call to find the correct object and then find the correct attribute value.
This is a little more complicated in DC, but normally it can be done.
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tessa, I am on Jira DC 9.12.15. I will try the API call and see if that works for me. Thank you!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.