Create Issue Security Schemes using jelly scripts

Stéphane Genin
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.
November 4, 2012

Hi,

I would like to create issue security schemes using jelly scripts. As far as I understand when reading the documentation, I shall do something like :

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
<jira:CreateIssueSecurityScheme name="mySchemeName"description="mySchemeDescription">
<jira:AddIssueSecurityLevel name="myLevelName"description="myLevelDescription">
<jira:AddIssueSecurity type="group"/>
</jira:AddIssueSecurityLevel>
</jira:CreateIssueSecurityScheme>
</JiraJelly>
My question is about the AddIssueSecurity tag: there is no parameter to match the sec_parameter column of the related db table. So, can I enter the group name (or the role name) in this tag?
Thanks
Stéphane

1 answer

0 votes
Stéphane Genin
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.
November 4, 2012

Hi,

After searching and testing a little bit, I found the solution :

&lt;JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib"&gt;
&lt;jira:CreateIssueSecurityScheme name="mySchemeName"description="mySchemeDescription"&gt;
&lt;jira:AddIssueSecurityLevel name="myLevelName"description="myLevelDescription"&gt;
&lt;jira:AddIssueSecurity type="group" group="jira-developers"/&gt;
&lt;/jira:AddIssueSecurityLevel&gt;
&lt;/jira:CreateIssueSecurityScheme&gt;
&lt;/JiraJelly&gt;

The only thing I don't know is how to set a default security level.

Suggest an answer

Log in or Sign up to answer