Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hide/disable Create button in Create Issue form only for a Project

Deleted user April 29, 2020

We need New issues to be created in project A only from project B via " Create Linked Issue "
Although we could remove " Create Issue " permission in Permission Scheme of Project A, believe this stops creating Linked Issue even from Project B
Is there a way to just hide/disable " Create " button at the bottom of the Create Issue form only when Project A is selected ?
Currently we have Message Text field which warns them not to create, but that doesn't stop users from creating new issue.

Scriptrunner Script Fragments, doesn't seem to provide an option, instead has option to hide Create button from Blue Menu bar across Jira, which is not what required

Just wondering any possibilities.

Any thoughts much appreciated.

1 answer

1 accepted

3 votes
Answer accepted
Payne
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.
April 30, 2020

A ScriptRunner Behaviour can be used to limit issue types based upon certain conditions; in your case, you could leverage it to not offer any issue types. See:

https://www.adaptavist.com/blog/restricting-issue-types-with-scriptrunner-for-jira/

You could use a simplified version of that example and simply state:

issueTypeField.setFieldOptions([])

Doing that will cause a warning to display to the user and prevent them from creating an issue in that project.

jira.jpg

Lokesh
Contributor
April 30, 2020

Works like charm. Thanks much 

Like Payne likes this
Lacey Also October 5, 2020

General note: don't be an idiot like me - remember to apply this as a general behavior to an entire project, rather than specifying a particular issue type :)

Diana C December 29, 2020

Does this work with JIRA Cloud at all? Or does this solution work just for JIRA Server?

Like Julio Rodrigues likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events