Forums

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

Powerscript for Jira - Creating a project script (event)

Dennis Henrik Kristensen September 17, 2018

Hi,

My organisation needs every new project to "include" a few standard issues. I was looking for creating these via scripts. 

For this i have in PowerScript created a listener for the Project Created event and made a script to create issues on this script. 

This works fine when a project is created manually via Jira. 
The problem is that when creating a project via a script run from SIL gadget runner it does not. I do not know if the event is not raised/ catched? As i can read in the Logs the event is not raised as it is by doing it manually.

Any ideas is very appreciated. 

2 answers

1 accepted

0 votes
Answer accepted
Radu Dumitriu
Contributor
September 17, 2018

We specifically prevent events from such routines. Why create a script in which you create a project, and in the listener you add code to create more issues? The normal approach would be to create the project and create the issues in the same script....

We could improve those routines to allow the event to be triggered, if you really need it.

 

Best Regards,

Radu

Dennis Henrik Kristensen September 18, 2018

Hi Radu,

Thanks for your reply. 

I have created a way for this to work via 2 function scripts and 1 caller script with parameters. So now the project and issues "are created in the same script".


0 votes
Alexey Matveev
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.
September 17, 2018

Hello,

Do you create a project with the admCreateProject routine?

Dennis Henrik Kristensen September 17, 2018

Hi,

Yes that the routine i use. 
admCreateProject(pkey, pname, description, lead, url, categoryName, defaultIsUnassigned, avatarId, projectTypeKey)

/Dennis

Suggest an answer

Log in or Sign up to answer