Forums

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

Convert a value to a string

Luca Alotto March 24, 2022

Hi, I'm trying to set a workaround to a Jira asset bug. The "Linked assets" field it's not displayed into any service desk queue.

I'm trying to create an automation that will transfer the Linked Asset value to a new custom field, short text type. 

At the moment it's raising an error requiring a string value to complete the operation.

I can't find any function to convert a field into a string.

Here's what I'm trying to do:

Schermata 2022-03-24 alle 09.01.24.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2022

Hi @Luca Alotto -- Welcome to the Atlassian Community!

First thing: is that custom field you are editing with the JSON the same as "CS - Linked Asset - Reference"?  If so, you only want to edit the field in one place, so remove one of those...probably the JSON expression.

Next, what value are you trying to put into the field?  And have you tried just setting that source field's smart value to the custom field, as in this example: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Text-custom-field

Kind regards,
Bill

Luca Alotto March 25, 2022

I'm using "Asset Management for Jira" app. It works by adding a new custom field (customfield_10067) where the issue linked asset is set.

*10067 it's an asset type field and advance field type.

Due to a bug, this field doesn't show its value in queue. I created a short text field customfield_10199 that should receive the value from *10067.

I'm using the code above but it seems Jira it's not converting *10067 into a string that *10199 can receive.

Suggest an answer

Log in or Sign up to answer