Hi Community,
I want to set custom fields as Visible/ ReadOnly present on particular Field tab based on user group when the issue reaches to a particular workflow status.
For example: I have
- User Groups: Group 1; Group 2
- Workflow statuses: Open > In progress > Done
- Field tabs: Tab A; Tab B
- Custom fields: Field X (on Tab A) ; Field Y (on Tab
- When a User (from Group 1) creates an issue and it lands on Open status, then Field X (on Tab A) should be Visible and Editable.
- And Field Y (on Tab
should be Visible and ReadOnly for User from Group 1. - On the same status, User from Group 2 should see Field X (on Tab A) as Visible but ReadOnly and Field Y (on Tab
as Visible and Editable. - If issue moves from Open to Inprogress, both users from Group 1 & 2, should see both Fields X & Y are Visible but set as ReadOnly on both Tabs A & B.
Please guide on how to configure the above scenario in scriptrunner for jira cloud and related script code for reference.
Thanks