Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with script

Flower June 25, 2018

Hello everyone,

I am new to Jira and I was assigned a side task to create a script that creates sub tasks in Jira.  For example when a new user will join, we need to create sub tasks for creating AD account, assign license SW with user name included in the title.

 

The script have to be entered in the script runner in the post function.  For example each time I click on button in the ticket a new task ( like "creating AD account for user and and priding user USERNAME access to licensed software ...etc) has to be created.

 

Your help is really appreciated!

 

Thank you.

1 answer

1 vote
Daniel Yelamos [Adaptavist]
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.
June 26, 2018

Hi Flower.

You should read all of our documentation and try to get the examples working before attempting to create a custom script yourself. You need to familiarise yourself with how Atlassian do things. 

Leaving that to the side, this can be done with our built-in Create Subtask function, and adding your additional code to the additional issue actions script form. 

Do say if I can help you further.

Cheers!

Dyelamos

Flower June 26, 2018

Thanks Daniel for your response.   I have no clue about how the programming language would work and how add field to the script like (creating AD account for user USERNAME).  Is there any place where I can copy a script and paste to the script runner?

Daniel Yelamos [Adaptavist]
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.
June 27, 2018

Hi Flower.

In all honesty, you are going to need to follow a programming course if you wish to achieve this. If I give you code right now, you are not going to be equipped to deal with problems when they arise. If you cannot follow the documentation that we've laid out and understand it, you need to follow something like: hackerrank or codecademy.

We actually have a bunch of courses laid out on https://learn.adaptavist.com/ that are paid only though. So I'd suggest hackerRank or CodeAcademy since they provide a cheap option for improving basic coding skills.

Wishing you luck!

Dyelamos

Like ian hardy likes this

Suggest an answer

Log in or Sign up to answer