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