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

3 votes
Answer accepted
Wouter van den Berg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events