Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getActionName() is not defined

Márta Hittmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 16, 2024

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

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
August 16, 2024 edited

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.

https://docs.adaptavist.com/sr4jc/latest/features/behaviours/behaviours-supported-fields-and-products

Trudy Claspill
Community Champion
August 16, 2024

Also, according to this Behaviours on Transition screens in Jira Cloud is not yet supported.

https://scriptrunner-for-jira-cloud.nolt.io/124

 

Like Márta Hittmann likes this
Márta Hittmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2024

Hi @Trudy Claspill 

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

Trudy Claspill
Community Champion
August 21, 2024

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.

Like Márta Hittmann likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

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 now
AUG Leaders

Atlassian Community Events