Is it possible to populate Checklist options when creating subtasks by Bob Swift's Create on Transition

Hello!

I try to create subtasks in workflow (different set of subtasks in different transition) and depending on transition I would like to have different Checklist options.

I created a customfield using Checklist. Then I added Create on Transition post function, where I added two options for that custom field. Like:

  • Custom field: 12345
  • Value: * Option 1

By using Markup (https://okapya.atlassian.net/wiki/display/CHK/Editing+a+Checklist#EditingaChecklist-Addinganitemtotheissue)

But that didn't work.

As I create subtasks from main task (or new subtasks from another subtask) I cannot use this post function (https://okapya.atlassian.net/wiki/display/CHK/Modifying+a+Checklist+in+a+workflow) because it only modifies current (sub)task. And it's quite impossible to mutilate new subtask workflow to do that in Create transition (as that Checklist is different based on what phase subtasks are created).

TL;DR: Do Checklist support Create on Transition plugin for populating Checklist options?

BR,

Jarno

1 answer

Hi Jarno,

A lot of people were able to modify a checklist from Groovy. A while ago someone tried to do it via Create-on-Transition but it didn't work out but that was a few years back. May Bob, modified how he sets up the custom field but from his documentation, he only supports JIRA's customfields and text based one.

Checklist if similar to a multi-select field which means that it requires an array of elements, preferably in a JSON format. Check this link

Yves

 

Hello Yves!

Thanks for the answer smile

Groovy means one more €€€ plugin.

Anyway, I just tried both ways also with JSON (and also "specific value box") and all failed.

checklist.png

So at least there is no easy solution. I would have been too good to be true smile

Of course there's that default value already (as that custom field couldn't be created without at least one value) and that might cause more problems too.

I know I'm trying to build a monster with subtasks creating subtasks with different values (for Checklist) in every phase and so on.

BR,

Jarno

Hi Jarno,

I doubt that it will work but you should put your value in an array notation:

[{"name":"My Checklist Item", "checked": false}]

Also, might be a good thing to reach out to Bob to see if he has a way of doing this. I included his add-on tag to notify him.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

335 views 0 1
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