Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,951
Community Members
 
Community Events
184
Community Groups

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

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");
example: 
customfield_id (where you gonna display those selected values)

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

Thank you,
Randy

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).

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

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 20, 2017

Hi,

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.

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 21, 2017

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

Chex2,V21,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).

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 21, 2017

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.

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 21, 2017

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.

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 21, 2017

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

Ok. vadim.lutsevich@gmail.com

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events