How to set a checkbox field to a value using a post function?

I have a custom field checkbox with values yes and no and would like to get a certain value (yes) checked upon a transition. How can I do this using a standard post function? I tried using "set custom field value" but must have missed something.

4 answers

1 accepted

hi anja.

can you please try using "Update Issue Custom Field" instead ?

it requires to have the Suite Utilities installed which you can find here

Hi,

 

Using Update Issue Custom Field post-function, what value do you give for for selecting a check-box?

 

Thank you

  1. Configure the custom field.
  2. Edit options.
  3. Click 'edit' for the option that you wish to set.
  4. Look at the URL in browser bar and scroll to the end.  You should see something like '&selectedValue=11001'.
  5. Set custom field value in the transition to '11001'.

Hi David,

 

That's a great fix and saved me hours of pain. Thank you!

My only question... do you know how you would untick the value using this method?

e.g. when value is '11001' = True, when value is null = False

Thanks in advance if you are able to help!

The JIRA Suite Utilities plugin provides additional workflow post-functions:

  • Clear Field Value - This post function will clear values from a Radio/ Checkbox custom field.

I'm having the same problem. In my case I wanted to enter multiple values in a multiple value field. There is no documentation on how to do this in a post function. I tried entering just one in the "custom field value" text box and using "append" checkbox. But it fails when I try to do the transition.

Are you using any sort of quotes or just entering the value?  I'm using the Workflow Enhancer for JIRA (free) and it seems to work.  I'm not getting it to do multiple values though.

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,241 views 14 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