Is it possible to block ticket creation in an Agile board between certain times?

Our Design team is starting to work via sprints and they'd like to block ticket creation after 12 on a given day. Presently other departments are able to create tickets constantly, they want to add this 'deadline' of ticket creation to enforce tickets being created in time for their sprints.

I would be very appreciative of any help on how to implement this, if possible.

Kind Regards,
David 

1 answer

1 accepted

0 votes
Accepted answer

Hey David,

The permission needed to be able to create tickets in a project is controlled by the Permission - "Create Issue" in your Permission scheme.

What you could do is to grant this permission to a new Role in your project and then either update the Role manually or update this role via the JIRA REST API through a scheduled job or similar. If the blocking is something you need to do on a sprint basis only (i.e. every second week or something) you could probably survive doing this manually. If it is a frequently recurring thingy you can create a script and update it via REST.

Something like this:

  1. Create a new global Role called Creators
  2. In your Project, populate this new Role with the users/groups that shall be able to create tickets. Preferably groups since you are going to update this role several times 
  3. Update your Permission Scheme to use this new Role for the permission "Create Issue". (NOTE: You may want to create a new Permission Scheme for this project if the one used is shared with other projects)
  4. When you want to block creation of tickets you just remove the groups from the role in your project. Add the group(s) again when you open up for ticket creation.

To automate this (or do it programmatically) create a script using the REST endpoint /rest/api/2/project/{projectIdOrKey}/role/{id} (https://docs.atlassian.com/jira/REST/6.4.1/#d2e2589)

Hope this helped!

// Svante

Thank you kindly Svante!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,424 views 15 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you