Forums

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

Retrieve name of Custom Field by value of another field fe Summary

Manuela October 5, 2022

Hello, I have a large number of Custom Fields, that I would like to refer to. There is only 1 custom field in each issue, that has the same name as the summary content. How can I achieve this? Nesting is not working: {{issue. {{Issue.summary}}}} :(

1 answer

0 votes
Nic Brough -Adaptavist-
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.
October 5, 2022

Welcome to the Atlassian Community!

Custom fields are also accessed by their id (and it's better to use this because your admins won't change it if they rename the field!) - try {{customfield_11200.value}} instead of {{issue.summary}}

You'll need to look up the number, but it's not too bad - Admin -> Custom fields, find it in the list and then hover over, or go into one of the edit or configuration options and look for "id=xxxxx" in the url.

I still think Atlassian should block people from using duplicate field names.  In both team and company managed projects.

Manuela October 5, 2022

Hello,

okay let's explain that way (I have 94 custom fields):

Issue IS-1: customfield_11200, customfieldname = issue.summary (value)

Issue IS-2: customfield_11300, customfieldname = issue.summary (value)

I want to set an Automation based on customfield, that's different for each issue. I thought about grabbing value of summary and use it as custom field name. Any ideas?

Nic Brough -Adaptavist-
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.
October 5, 2022

There's no way to do that.  Each custom field is a separate field, you will have to refer to each one individually.

Manuela October 11, 2022

Update: I was able to do this with Scriptrunner listener. Anyway, thx @Nic Brough -Adaptavist- for response :)

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