I want to prevent users from creating an issue in Jira (i.e. using the '+' icon) and force them to use the portal. I only want this to apply to some issue types. This is because the portal forces a request type to be specified, along with hidden field settings and mandatory fields dependent on the request type.
I know that I can change permissions to prevent users from being able to create an issue, but this applies to all issue types.
I have access to ScriptRunner and Automation for Jira. I have tried to write a Validator on the Create transition to inspect the issue properties, but this appears to be not available until after the issue has been created.
Does anyone have any ideas as to how to do this please?
Hi Nick,
Thank you for your question.
I can confirm that unfortunately it is not possible to prevent users from clicking the + icon inside of Jira Cloud to create an issue with ScriptRunner for Jira Cloud.
The reason for this is that the Atlassian Rest API documentation located here does not provide any methods for restricting who can click this button or to hide the button and ScriptRunner for Jira Cloud can only use the public rest API's which Atlassian provides.
I understand that this response is frustrating but please understand that ScriptRunner for Jira Cloud is restricted to only use the public API's which Atlassian provide as explained above.
I hope this information helps.
Regards,
Kristian
@Kristian Walker _Adaptavist_ Thanks for the answer. Do you know why the properties field is not set during the Create transition? Is this a bug I should raise with Atlassian?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nick,
Thank you for your response.
I cannot say why the properties are not set during the create transition as this is an Atlassian issue and I would advise you speak to them about this.
I can however advise that for post functions on the create transition that it is always best to order these below the post function named Re-index an issue to keep indexes in sync with the database in order to ensure the issue has been created before you run your post function in order to ensure the issue exists when your code is run.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks - I've raised a ticket with Atlassian.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.