Automatic create checklist based on checkboxes

Hello everyone! I need to resolve some simple task.

I need a script that would create a checklist based on checked positions in checkboxes list. Script should start in post function workflow. I know that it can be realized in scipts via ScriptRunner but I don't know java language :(

3 answers


Could you explain with an example?

We using a Service Desk. When customer creates a ticket he checks some checkboxes (for example - services that he need) in a request form. After applying a request we should recieve a ticket with automatic created checklist filled with items from checked checkboxes.

Really i don't know why you didn't use the checkboxes?

if i have understood :), you have several checkboxes and for each checkbox values are selected 

Chex1:V11, V22


and you want that all these values selected or checked in chexboxes chex1 ad check 2 will be selected in check list like this

check list selected values will be V11, V12 , V21, V22

is it your need ?

if yes , why did you want do this ?

Oh, my English is too bad for so complicate explanations from my side.

Let me explain my question in list :)

1) Customer create a  request in "Help Center". When customer fills a request, he checks some position of checkboxes (V11, V14, V15..) 

2) In "Basic Support" project creates a ticket with checklist of chosen positions by customer (V11, V14, V15...) and a few base positions (e-mail, AD account, workstation). After all I must have a checklist with positions (e-mail, AD account. workstation, V11, V14, V15).

Don't worry , me too i am not well in English :).

Ok I think that's i have understood like i have explained

Maube you can do it with java script or with your plugin scripting

so you could create a checklist with all values of all checkboxes like

Positions by customer (V11, V14, V15...)

Base positions (e-mail, AD account, workstation)

and create a checklist with values :

V11, V14, V15...,e-mail, AD account, workstation

and with scripting plugin or javascript you select the values selected in checkboxes

for example :

checked values in:

Positions by customer: V11, V14

Base positions :e-mail, AD account

The selected values in checklist are V11, V14,e-mail, AD account

I don't know if really what do you need :)

I am just trying to give you help if possible:)

Yeah, you understood me right) But the problem is that I don't even know JS or JAVA and I can't write this script. I hope somebody can help me with this.

I could Help you to do it with javascript :), but it will take sometimes  could you share with me your creation screen ?

which scripting plugin are you using ?

Can we talk in any messenger? It will be faster and I can give you some more information. My skype vadim.lutsevich.jandall or u can choose any other messenger.

in gmail nadirmeziani if possible , later i will try to do it in my instance Jira core


Javascript can't help with this problem. Somebdoy know how to add a checklist items via groovy script?

Hi Vadim,

Correct me if Im wrong, in short term you just want a script code for getting the selected value in checkbox field?

Ill try to help you out. try to use this SIL routine getFieldOptions("Project Key", "Issue Type","Field Name");
customfield_id (where you gonna display those selected values)

code: %customfield_id% = getFieldOptions("Project Key", "Issue Type","Field Name");

Thank you,

Actually, I need a code for creating checklist.

base on your explanation. you should get the value that the user selected in the check boxes? and filled it up in your own checklist details right? so you should get the value by using getFieldOption routine then feed it in your custom field(checklist).

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

531 views 6 9
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
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