Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,893
Community Members
 
Community Events
185
Community Groups

How to populate the value of a custom Checkbox field using Script Runner

I want to populate the value of the Custom Field Checkbox using ScriptRunner. I got the solution for doing the same for Jira server but not getting any hint for Jira cloud. From API or other given examples, I am able to set the value of Checkbox (any value from the default list) but not able to add new values in the Checkbox List.

 

2 answers

0 votes
Kate Kabir
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.
Jun 13, 2021

Hi @Payal Gogia 

Thank you for your question.

Unfortunately, I can confirm that the plugin cannot dynamically populate field values like it can in the server version can with the Behaviors feature. We do not have an alternative way to configure this in the cloud.

The reason we are unable to provide this functionality is due to the restricted functionality and API's which Atlassian provide inside JIRA Cloud, due to the fact that Atlassian only provides a Rest API in Jira Cloud and not the same Java API that the server version contains.

However, You may vote for a Feature Request on this at, https://scriptrunner-for-jira-cloud.nolt.io/4  if you are interested.

I hope this will explains the question.

Thank you. 

Kind Regards

Kate

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 03, 2021

https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console

is a really basic example of how to set most custom field types, including checkboxes.  Note that checkboxes and multi-selects look pretty similar (as do select lists and radiobuttons).  It's because they're actually the same thing, just rendered differently!

Hi Nic,

 

Thanks for your quick response. I went through think link, it suggests how to get this using jira server not cloud (script runner on jira cloud)

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jun 03, 2021

There's a cloud version of it (which is a lot more simple, as you can feed it plain text rather than having to think about the type of field)

If you are referring to default examples that are given then that one is actually setting a value from the predefined list and I want to add new values to that list.

If possible can you share an example with me to populate values for a checkbox or a multi-select

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events