post-function set security level dropdown is empty

Hi,

 

when a new issues is created the security level should be set.

It should be possible via JIRA script post-function:

Set issue security level depending on provided condition

But my security level dropdown is empty so i can not select the needed security level

2015-04-15 17_12_49-Add Workflow Transition Function - JIRA _ Collins GmbH & Co. KG.png

here the security level details of the used security scheme:

2015-04-16 10_03_20-Project IT - Issue Security - JIRA _ Collins GmbH & Co. KG.png

 

I have made sure that "Security levels are shown by issue security scheme. Make sure the scheme is valid for projects using this workflow."

Any idea which inline script via the custom script post-function i can use to set the security level ?

So any suggestion how to solve this?

1 answer

1 accepted

1 vote

Is Issue Security the name of the scheme? That dropdown doesn't look correct, what version of the plugin and JIRA do you have?

Can you attach a screenshot of the issue security levels admin page, for that scheme.

JIRA Version 6.2.7 and Script Runner Version is 3.0.0 I will attach the issue security screenshot

Could be a javascript issue then... can you update to the latest... 3.0.14? What browser are you using? (PS: don't upgrade if you are on IE8).

My plugin page shows following message instead of the update button: "INCOMPATIBLE - UPDATE REQUESTED" I am using chrome, IE and firefox having the same problem.

Any idea which inline script via the custom script post-function i can use to set the security level ?

"INCOMPATIBLE - UPDATE REQUESTED" - you need to either download from marketplace and then upload, or click "add new plugin" and point to the marketplace url. The version you are using is not marked as compatible either, so you may as well update.

Alex: This is right now not possible so i need to wait until the next internal JIRA update which is in two months. Any idea which inline script via the custom script post-function i can use to set the security level ? Jamie Echlinvor: issue.setSecurityLevelId(12345) Alexander Fedtke: Great thanks it is working for all transition except for the create transition. Any idea how to solve that?

try putting it last in the list, perhaps refreshing the issue from issueManager.

Tried that did not work. Just used fast-track issues script runner post function to move it from status open to in progress and used the in progress transition to set my security level. Thank you very much for your help!!! Alex

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,203 views 13 19
Join discussion

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