Forums

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

How can I forbid a user to create a project?

David D
August 2, 2021

Hi there,

my question is simple: Can I forbid users to create their own projects in JIRA WORK MANAGEMENT (edit)? If yes, how?

I cannot find any global permission for that.

 

Kind regards,

D

1 answer

0 votes
Vidic Florjan
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 Champions.
July 22, 2014
import com.atlassian.jira.ComponentManager
def componentManager = ComponentManager.getInstance()
def changeHistoryManager = componentManager.getChangeHistoryManager()
Double counter=0
changeHistoryManager.getChangeItemsForField(issue, "status").each{
 if (it.toString=="Reopened")
 {
  counter=counter+1
 }
}

return counter
Vidic Florjan
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 Champions.
July 22, 2014

You need to create new custom field of type Scripted Field and add upper code to it (from jira administration, Add-ons, Scriptrunner Script fields).

Field has parameters:

- Template: Number field
- Configured searcher: Number Searcher

Please check your status name after reopening issue and change it in script to proper value.

Liat Yanco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2018

Hi Vidic,

it was very helpful for me, thanks!

any chance is not working for status I created in Jira? I tried to this with the status "Reopened By Customer" and it didn't work. any idea why?

Suggest an answer

Log in or Sign up to answer