• Community
  • Products
  • Jira
  • Questions
  • Is there a way to get required field asterisks to show up on a screen when the required field is configured by the post transition validation?

Is there a way to get required field asterisks to show up on a screen when the required field is configured by the post transition validation?

I have a several step workflow where fields are only reqiured at certain steps. However it's not obvious that they are required until you click to submit the transition. Is there a way to configure it so that the astrisks show up on the form for those fields. I tried field configuration schemes but they only apply to one per issue type.

2 answers

1 accepted

you need to do it by using javascript, try with following script

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

check this site for more info

http://www.j-tricks.com/1/post/2012/09/silly-javascript-hacks-or-is-it.html

How do I put Javascript into a screen?

following way you can add it

1.add it on field description of field configuration

2. you can load it as webresource module in plugin

3. for testing purpose you can add it on anouncement banner

A better option would be to use the "Mandatory Fiel Validator" which ships with the plugin "Workflow Essentials for JIRA". (Disclaimer: Its not free and Im one of the Developers)

See https://marketplace.atlassian.com/plugins/de.codecentric.jira.wes/server/overview

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

846 views 3 12
Read article

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