Custom Field Description or introduce * next to custom field with RED color

Hello Team,

We do have JIRA custom workflow and it does contain multiple custom fields. Now as per Atlassian making custom fields mandatory on subsequent screens are not possible except first screen i.e. Create Issue Screen. Now our business insisted us to atleast introduce * with RED color or make the custom field desciption to RED color, to make the field look like mandatory.

Because there is no support for 3rd party plug-ins we have decided not to use them. Is there a way to achieve my requirement through Javascript. Please advise

Regards, Nazim

3 answers

Hey,

check this code:

http://www.j-tricks.com/tutorials/silly-javascript-hacks-or-is-it

<script type="text/javascript">
AJS.$("#customfield_11300").parent().children('label').append('<span class="aui-icon icon-required"></span>');
</script>

You can add the code to the field description of a custom field. (Depending on the JIRA version you'Re using). Alternativly load it as a webresource module in a custom plugin

Cheers

Hi,

Yes you can have a customfield to be mandatory on any screen not just Create Issue Screen.

You have to configure the customfield to mandatory in the field configuration scheme. It will then be mandatory on every place.

If you want just the * with a RED colour, you can put this in description of the field and it will be visible on all the screens.

Vijay

Maybe I didn't understand the question properly. If you want to make it madatory across the entire issue lifecycle (workflow), Vijay is right of course. Simply make the field mandatory in the field config that's associated with the issue type/project and you're done

Sorry I feel I should put more light here. The custom field has to be placed on subsequent screen not on the Create Issue screen. When we make custom field mandatory on subsequent screen, while we create issue, it asks to provide value for the custom field which is residing on different screen. Hence this is not the right stuff and I also identified thrid party plug-ins that can help me to acheive this but because support is not available for those we cannot take risk.

But as suggested by Christian Czaia I placed script and it showing me * with red color next to custom field. Thanks a lot Christian Czaia and Thanks a lot to everyone.

yep, making field mandatory will make it mandatory everywhere.

javascript hack works well if the requirement is just to make it visible with a RED * :) Christian's solution is very well useful

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot