It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 in Marketplace Apps & Integrations

Localize Smarter with the Transifex Integration for Bitbucket

Over 52% of internet users say obtaining information in their own language is more important than price and 75% of the world’s population doesn’t speak English. It’s no wonder then that successful gl...

412 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you