How do I set default Sprint priority for bugs
Asked by Tapas Polai:

Hi all I want to set default Sprint Priority of a bug created as P0. How do I do that ?


Answers:
author: Lisa Forstberg
body: Hi [@Tapas Polai](/t5/user/viewprofilepage/user-id/5558091) ,

I am trying to understand what you want to accomplish.

Are you using Sprints in a Scrumboard in Jira? Do you have a custom field called Sprint Priority?

If you want to set a custom field to a default value for the issuetype Bug upon creation, this can be achieved on multiple ways:

1. create a bug context on that custom field, choose default value P0 and make it required for Bugs via field configuration

2. Add a post function in the Bug workflow on the create transition and set the field to P0

3. Add an automation to trigger on creation of bug and update the field to P0

But still a bit curious to what you want to achieve. What does "Sprint priority" mean for you? Please add some more information about the problem you face and solution you envisioned.

Normally the issues in a sprint are ordered in *rank*, the issue placed at the top of the sprint has a higher importance than the next etc. There is also a Priority field in Jira, separated from the rank system that can signal criticality, impact or urgency for example.

Also if you want to achieve higher visibility on Bugs in sprints you can utilise swimlanes on the active sprint view of your scrum board and f ex organise a Bug swimlane at the top so the team easily spot them.

br

Lisa

comments: author: Tapas Polai
body: Hi [@Lisa](/t5/user/viewprofilepage/user-id/476759) we are using Sprint priority field to set task priority as P0 ,P1 ,P2 etc.

As for the bugs we want any issue type which is created as bug should be of P0 which is of highest priority.


author: Fabio Racobaldo _Herzum_
body: Hi [@Tapas Polai](/t5/user/viewprofilepage/user-id/5558091) and welcome,

do you need that default "sprint priority" will appear to end user and he can change it? If so you could try to setup a Behaviour provided by scriptrunner.

If you need that a default sprint priority will be automatically associated to a bug after a creation you can put in place an automation.

Hope this helps,

Fabio

comments: author: Tapas Polai
body: Hi @[Fabio Racobaldo _Herzum_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/781528)

we are using Sprint priority field to set task priority as P0 ,P1 ,P2 etc.

As for the bugs we want any issue type which is created as bug should be of P0 which is of highest priority.

As of now in automation we can only set priority as low high or medium by default for all the issues created.

is there a solution where we can assign Sprint priority by default for issues created . For example Sprint Priority should be P0 for all the bugs logged


author: Hans Polder
body: [@Tapas Polai](/t5/user/viewprofilepage/user-id/5558091) ,

You could do that using Automation.

I assume the 'Sprint Priority' field is a custom field in your environment? Can you share a bit more context please? :)

comments: author: Tapas Polai
body: we are using Sprint priority field to set task priority as P0 ,P1 ,P2 etc.

As for the bugs we want any issue type which is created as bug should be of P0 which is of highest priority.

As of now in automation we can only set priority as low high or medium by default for all the issues created.

is there a solution where we can assign Sprint priority by default for issues created . For example Sprint Priority should be P0 for all the bugs logged


Tags: cloud

jira-cloud