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

Accepted Answer
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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,360 views 2 7
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