Can Issue Collector set security level?

Pepe
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.
February 11, 2013

The form builder within the Issue Collector does not give security level as an option so I am trying to set the security level manually via javascript as per the article referenced below. The same article also notes that some fields cannot be set via javascript, such as assignee. That is the only example given but I'm wondering if issue security is another field that cannot be set.

If it can be set via js what is the field name? From the create issue screen it seems to be 'security' but in JQL it is 'level' - any insight would be appreciated.

-----

https://confluence.atlassian.com/display/JIRA/Advanced+Use+of+the+JIRA+Issue+Collector

1 answer

1 accepted

6 votes
Answer accepted
Pepe
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.
February 20, 2013

Yes it can. It looks this:

<script type="text/javascript">window.ATL_JQ_PAGE_PROPS =  {
	"triggerFunction": function(showCollectorDialog) {
		//Requries that jQuery is available! 
		jQuery("#myCustomTrigger").click(function(e) {
			e.preventDefault();
			showCollectorDialog();
		});
	},
    fieldValues: {
        security : '10000'
    }
  };</script>

Suggest an answer

Log in or Sign up to answer