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 votes

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

Thanks Kian.

0 votes
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. 

Thanks Alexey.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

468 views 7 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