Hide Screen tab from current user as Reporter on Edit Screen when a custom field value is selected?

Digvijay Singh Gehlot
Contributor
July 22, 2024

Hi Community,

I have created two screen tabs (Tab A, Tab B) and running a scriptrunner behaviour where I am showing the Tab A on Status A and Tab B on Status B only when opening Issue Edit screen.

My use-case is:

In Issue Edit Screen, I want to hide Tab B from the current user as Reporter if a value in the custom field (present on Tab A) is selected under Status A.

Please guide on how I can restrict the current user as Reporter to view the Tab B in Edit Screen based on a custom field value (present on Tab A) by using either scriptrunner, JMWE app, or JIRA Automation. It would be a great help.

Thank you.

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 22, 2024
0 votes
Zuri Suwru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2024

Hey Digvijay,

There is a very simple way using behaviours to achive hidden or disabled tabs. In case you only have two, Tab A and B in this respective order, you can add either

hideTab(1) //Tab A would be 0, Tab B is 1 - hide completely hides it

OR

disableTab(1) //Tab A would be 0, Tab B is 1 - disable makes it unselectable

Implement the aforementioned code into your logic and you should be good to go.
PS.: Take a look at the official documentation from Adaptivist regarding tab operations here.

Bests,
Zuri S.

TAGS
AUG Leaders

Atlassian Community Events