Affected Version - not a custom field and mandatory - set default value

Hi

I have a non custom field called affected version on Create Bug screen which is mandatory.

By default in absence of any version it shows 'None' and create Bug screen gives error saying Affected version required.

Can someone suggest on how i can have a default value TBD and get rid of the error.

3 answers

1 vote
Mikael Sandberg Community Champion Nov 07, 2017

The Affect/s Version fields is populated by the Versions that you have defined in your project. To add values to it you need to go to your Project settings and add a Version. See https://confluence.atlassian.com/jirakb/how-to-enable-and-edit-component-s-affects-version-s-and-fix-version-s-field-711361820.html for more details.

You can also make the field optional by changing your field configuration so you do not have to enter a value for Affect/s Version.

Thanks Mikael. We want our users to add affected version hence we have kept it mandatory.

0 vote

You can either modify the Field Configuration to remove the requirement for Version, or you can create a new version for the project to use within bugs.

If you are going to just be creating a dummy version to set your bugs to, you might as well remove it from the configuration. That being said, if you are going to remove it from the field configuration scheme, make sure that you aren't affecting other projects. 

This is cloud documentation for how to modify the field confiugrations, but it works for server as well. 
https://confluence.atlassian.com/adminjiracloud/changing-a-field-configuration-844500798.html

0 vote
Alexey Matveev Community Champion Nov 07, 2017

Hello, 

You can make the field not mandatory and create a validator or post function where you would check if the field has a value or not.  If not you would set a default value to the field. 

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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

807 views 2 19
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