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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 13 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

36 views 0 5
Join discussion

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