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.
I have given a full solution with a screenshots on this page:- https://community.atlassian.com/t5/App-Central-questions/Hide-Screen-tab-from-current-user-as-Reporter-on-Edit-Screen/qaq-p/2761101
Thank you and Kind regards,
Ram
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.