The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Placeholder for values in an Assets Custom Field

Michael.Gaskin
August 25, 2023

I have an automation rule that sets the Summary for issues of a given request type:

{{issue.summary}} by {{issue.reporter.displayName}} - {{customfield_12570.value}}

The placeholder {{customfield_12570.value}} worked fine with a field of type Checkbox, but now I have an Assets Custom Field there instead and getting the values is a bit more complicated. 

In the REST view, the new field appears like this: 

"customfield_12693": [
{
"workspaceId": "869e85a4-ad59-462f-8b36-6dec6f057aaf",
"id": "869e85a4-ad59-462f-8b36-6dec6f057aaf:15",
"objectId": "15"
},

I wonder if there is some way to get the object name from the objectId and use that in a placeholder. 



1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Wouter van den Berg
Community Champion
August 26, 2023

Hi @Michael.Gaskin

Can you share a sceeenshot of the object so we can see all attributes. Normally you would target an object customfield by targeting the actual attribute like customfield_xxx.attributename but this can vary based on the attribute being as simple as a name or reference for example. A screenshot would help. 

Michael.Gaskin
August 28, 2023

@Wouter van den Berg Here's the Attributes screen for the object in question:

image.png

Wouter van den Berg
Community Champion
August 28, 2023

Hi @Michael.Gaskin

The following should work: 


{{issue.summary}} by {{issue.reporter.displayName}} - {{customfield_12570.Name}}


Let me know if this worked and if this solved your issue please accept this answer. 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events