How do I prevent issues being assigned to another projects sprint?

Currently, it is possible to assign issues from one project to the sprint from another.  I can see where this might be beneficial in some workflow.  Perhaps you have 1 company-wide sprint schedule that multiple projects are following, but we don't do that.  This has happened 3 times accidentally, and 0 times intentionally.  When it happens, the issues don't show up on anyone's agile board, so they kind of get lost in limbo.

I don't think this is something we are ever going to want to do, so I'd like to disable it.  How do I limit the list of sprints available in the Sprint drop down to just the sprints for the current project?

2 answers

This widget could not be displayed.

Sprints don't belong to projects, they are more about what boards you are working with, and of course, a board can contain many projects.  To "fix" this problem, the best approach is to stop using boards with many projects - have one project per board.

I only have one project per board. However, when users edit an issue, they still have the ability to add it to someone else's sprint.

I have the same problem as Jamie ( one project = one board), so please advise since this is very unwanted behaviour.

This widget could not be displayed.

This will require a script/coding to get the desired result.  If you are ok with that feel free to read on.

I would suggest doing this.  You can get a list of sprints based on a project by using a method called "getSprintsForView(Rapid View)".  Getting the list of rapid views and the sprints associated to those rapid views (method up above) requires knowledge of the greenhopper api.  Don't confuse this api with the current JIRA api.  You may need to dig around a little harder to find the exact methods you need.  Once you have the list of sprints how you implement that is up to you.  Personally I have had the best luck using ScriptRunner for implementing validations such as this.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

97 views 1 0
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