Hi All,
I am trying to create a Behaviour script where I would like hide and show customfields on a transition screen based on value of another customfield. I have found this function in the documentation getActionName() but it is seems it is not defined (as I can see in the logs).
Could you help me what the problem is the above mentioned function ? Or maybe another way to use a script on a transition screen?
Many thanks for your help,
Marti
Hello @Márta Hittmann
Welcome to the Atlassian community.
Can you provide a link to the documentation you are referencing?
From this documentation, it does not appear that use of Behaviours scripts is supported in screens shown during Transitions. The document only mentions the Issue View and Create View screens.
Also, according to this Behaviours on Transition screens in Jira Cloud is not yet supported.
https://scriptrunner-for-jira-cloud.nolt.io/124
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply, I have checked again, getActionName() is available for Data Center only.
Do you have any suggestion to solve my task without a Behaviour script?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not aware of another third party app that provides similar functionality.
You say you want show/hide custom fields B, C, D based on the value of custom field A. Is the value of custom field A set before that transition is initiated, or set during the transition?
If it is set before the transition is initiated and not changed during the transition then you could make multiple copies of the transition. Use Conditions in each transition to make a given transition available or not available based on the value of custom field A. Create a unique transition screen for each value of custom field A and associate each one with the copy of the transition that has the Conditions set appropriately. Then a given transition with a given transition screen would be available based on the value of custom field A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline 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.