How Can I Use Behaviours to Mark a Field Tab as Required?

Michael Spoonauer January 31, 2021

I know that I can do things like hide, show, and switch to FieldTab objects using Jira Behaviours.

Is there a way to mark a tab as required using the asterisk?  Because I want to indicate to users that a field has become required, and users become confused as to why they cannot submit the form when the tab on which the now required field is placed has not been marked as required by the UI.

Sure, the field itself has, but not the tab on which it sits.

References:

https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/operations-on-tabs.html

https://docs.atlassian.com/software/jira/docs/api/8.4.3/com/atlassian/jira/issue/fields/screen/FieldScreenTab.html

2 answers

0 votes
Amirul _Adaptavist_ February 13, 2021

Hi Michael,

 

Using Behaviour, if there are field that has become required and not fill in. The tab text would change to red colour as below which indicate there are some field required not field in:

 Create Issue - JIRA 2021-02-14 03-00-03.png

 

I am testing using Jira 8.15 with latest ScriptRunner 6.19

 

Regards,
Amirul

Michael Spoonauer February 15, 2021

Thanks, I'll test it out when we upgrade to Jira 8.14-15.

Like Anneli T likes this
Murugan Mittapalli August 30, 2021

@Amirul _Adaptavist_,

Thanks for the Behaviour post, Can you share with me the script for the tabs that would change to red colour.

Thank you.

0 votes
Fadoua
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 31, 2021

@Michael Spoonauer 

Not sure it is possible.

I know you can make all the fields under a specific tab required. Not sure you can make a tab required.

Best,

Fadoua

Suggest an answer

Log in or Sign up to answer