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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.