Setting 'Flagged' multi-checkbox field in JIRA Greenhopper workflow transition

I’m using JIRA 4.4 with Greenhopper 5.7.4. We have a custom field called ‘Flagged’ that’s a multi-checkbox type. It’s used to mark impediments.

I want to set this field automatically when an issue moves through our workflow. I tried using the ‘Set field value from User Property value’ post function during a transition. I added a transition property named ‘flagged’ with the value ‘Impediment’ and tried to use it in the post function.

But it’s not working. I’m not sure if this is the right way to set a multi-checkbox field. Does anyone know how to do this correctly? If this method should work, how do I set ‘Impediment’ to true?

I’m trying to automate the flagging process that’s usually done manually in Greenhopper. Any help would be great!

I encountered a similar challenge with multi-checkbox fields in JIRA. The ‘Set field value from User Property value’ approach doesn’t work well for this type of field. Instead, try using a Script Runner post-function. You can write a simple Groovy script to set the ‘Flagged’ field value. Here’s a basic example:

issue.setCustomFieldValue(customFieldManager.getCustomFieldObject(10000), [‘Impediment’])

Replace 10000 with your actual custom field ID. This method allows for more flexibility in manipulating multi-value fields. Remember to test thoroughly in a non-production environment first. If you’re not comfortable with scripting, consider reaching out to your JIRA administrator for assistance with implementing this solution.

As someone who’s worked extensively with JIRA and Greenhopper, I can tell you that setting multi-checkbox fields in workflow transitions can be tricky. One approach that’s worked well for me is using the ‘Update Issue Field’ post-function. Here’s what you do:

  1. Edit your workflow transition
  2. Add the ‘Update Issue Field’ post-function
  3. Choose your ‘Flagged’ field
  4. In the value field, enter ‘Impediment’

This should automatically check the ‘Impediment’ box when the transition occurs. If you need to set multiple values, you can separate them with commas.

Also, make sure your field configuration allows for modification during transitions. Sometimes, field configurations can restrict changes, even through workflow functions.

If this doesn’t work, you might need to look into more advanced solutions like ScriptRunner or custom plugins. But try this method first – it’s often overlooked and can save you a lot of hassle.

hey adventurousHiker17, i had a similar issue. have u tried using the ‘set field value’ post function instead? it worked for me. just select the ‘Flagged’ field and enter ‘Impediment’ as the value. make sure to check if ur field is configured correctly in the custom field settings too. good luck!