Hello,
I have several screens that are used globally in all projects.
I have about 300 projects that use this window. Sometimes I have to add some field only for few projects. The only way out is to manually select the projects available in the Choose context context window.
Does anyone know a way to automate this process. Is this feasible using Script Runner? Or REST API? Thank you in advance for your answer.
Hello @Tomek and welcome to the community!
I believe this could be achieved by using a Scriptrunner Behaviour.
https://scriptrunner.adaptavist.com/5.4.47/jira/behaviours-overview.html
A Behavior allows you to hide a specific field (or multiple fields) according to a condition.
I hope this helps,
JT
Hi @Jean-Théo [Adaptavist] , what with View issue screen. It seemed to me that Behaviors can only hide fields on the transition screens and the creation screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The behaviours can also hide fields from the edit screen. Since the users do not have access to fill the field anywhere (since it is hidden in create, edit, transition screen), it won't show in the view screen either!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the fields are the same in every situation, this can be solved by adding a script listener as well.
The script would set the fields back to empty either on issue creation or update, depending on your need.
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.