• Community
  • Products
  • Jira
  • Questions
  • How to define the Inline script for a field to give result as concatenation of other fields existing as Checkboxes.

How to define the Inline script for a field to give result as concatenation of other fields existing as Checkboxes.

Hi Team,

Request you to please assist in creating a scripted field with details of script where the result in the scripted field needs to be the concatenation of around 27 existing checkbox fields.

1 answer

0 votes

Which scripting addon are you using?

The basic code you need is issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("MySelect")) For a check-box, that will return an array of possible values, which you can then iterate through to concatenate, then you'll need to repeat that for each of your 27 checkbox fields.

Is this the default? I assume componentManager is the field name here. What do the other 2 do? getCustomFieldManager().getCustomFieldObjectByName("MySelect")

No, the field name is "MySelect". componentManager is the manager class you need to use to get a handle on the fields

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,103 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot