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
Please guide on how to configure the above scenario in scriptrunner for jira cloud and related script code for reference.
Thanks
Hi Digvijay
To achieve these requirements, you would need to configure your behaviour to work on the Issue View for the On Load action.
Your script would need to stary of by getting the current status of the issue which you will need to do by making a call to the makeRequest api to get the current issue and to get the value out of the status field.
We have an example of getting fields from the issue here that you can as a reference.
Once you have got the status, you can then write the logic to make the fields required based on a user group on the tabs, and the script examples below will help with creating this logic.
* Access tabs in behaviours example
* Make fields read only based on user group
* Make field visible/ hidden example
I do not have examples of complete scripts to achieve your requirements, but you can use the suggestions above to help build scripts to achieve your requirements. If you need further assistance with these, you should raise a ticket with our support team so they advise further.
I hope this information helps
Regards,
Kristian
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.