Update Issue Custom Field Post-Function + Checklist = Error

Hello,

I'm trying to use 2 plugins (Checklist and Suite Utilities) together.

I would like to create a Checklist, editable by everyone at the issue level (adding AND removing items). I already know there is a limitation on removing function: http://okapya.com/checklist/adding-items-in-issue

To circumvent this, I would like to initialize the checklist (=create it) during a workflow transition. I intend to use Suite Utilities, using a Update Issue Custom Field Post-Function, to fill the checklist by adding items during the transition: https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions#JIRASuiteUtilitiesWorkflowPost-Functions-UpdateIssueCustomFieldPost-Function

Although I think I set up the Post-Function correctly, I get the following error message: Unable to update custom field customfield.

  1. Are the 2 plugins compatible?
  2. What is the syntax to use to update the CustomField of type Checklist using the Post-Function?
  3. Are there additional requirements to add items in the Checklist using this way?
  4. I looked on the forum, and the issue the nearest to mine was this one: https://answers.atlassian.com/questions/12272557; The solution there was to use Grovvy with Script Runner. Is there are solution to my issue which does not require the use of these plugins?

Thanks by advance for your contribution.

 

1 answer

Hi Harold,

I looked at the code for JIRA Suite Utilities and, as with most workflow post function operators I have seen, they expect the value from the customfield to be a string which is not the case with Checklist. So far, the only reliable way for updating a checklist is via groovy (see this answer). I am currently developing Checklist V3 and will try to add a workflow post function to help changing Checklists without requiring any code.

Regards

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

802 views 3 11
Read article

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