Required sign "*" should be shown on workflow transition views

Hello,

I have on each transition defined transition views and different fields which are required on these specific

transition. Is it possible to mark these fields also with a *?

At the moment the field is a required field but no one knows this because the only possibility to see that the field is required is, to try the state change and see the fields which are required.

Maybe a screenshot shows the problem.

Best REgards

Elke

6 answers

1 accepted

Thanks a Lot!!! Jobin, i am also looking for this

hello,

thank you very much for this link. It's very good, I hope it will work.

Can you tell me, where I can enter this javascript? I don't know which file I have to edit or where I should enter the described javascript.

BR Elke

add it on field description in field configuration scheme of a specifi project

ok thanks! It works perfect.

Does this also works for system fields?

BR ELke

Yes, although the names/ids of the system fields in the html are very different from the custom field names (and a lot more obvious - assignee, reporter, priority etc)

The workaround is perfect for select fields and normal custom fields. But it doesn't work on checkbox fields. Maybe the name of the field is different as customfield_id.

Do you have any idea?

BR Elke

try something like this

AJS.$("#customfield_12310-1").parent().children('label').append('<span class="aui-icon icon-required"></span>');

I have tried it but it doesn't work. The * doesn't appear.

For chechkbox

<script type="text/javascript">

AJS.$("#customfield_xxxx-1").parent().parent().children('legend').children('span').append('<span class="aui-icon icon-required"></span>');

</script>

Thank you very much. It works now perfectly! Thank you! BIG Thank you!

Best Regards

Elke

I had the same requirement, couldn't find any work around yet. I don't think there is one.

this is very very bad. I hope someone find a workaround. I am still hoping!

BR Elke

Hello again,

Does anyone know how the system field: Comment is used through the javascript.

I have tried: <script type="text/javascript">

{ AJS.$("#comment").parent().children('label').append('<span class="aui-icon icon-required">

but it doesn't working.

BR Elke

Hi everybody,

I have found the solution.

The Comment field is not a normal systemfield and it was only possible to add the * to the label. It works with the following script:

<script type="text/javascript">

{

AJS.$("label[for=comment]").append('<span class="aui-icon icon-required"></span>');

}

</script>

BR Elke

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 Tuesday 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...

243 views 1 18
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