Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

ScriptRunner - Triggering one behavior scripts within a separate behavior script?


Is there a way to trigger a particular behavior script (Script A) within a separate behavior script? (Script B)

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 13, 2023

I'm afraid it is not possible - Behaviours are injected into screens, and the browsers rendering them have no way to support this.

Thanks @Nic Brough -Adaptavist-, I knew it was a long shot but I thought I should ask.

The reason I ask, is because we have 3 separate single select custom fields, 2 of which we currently have scripts within, and the 3rd we want a script to check the values of both previous fields in order to change values within that field.

For example:
"Brand" customfield (Brand1, Brand2, Brand3)

  •  The "Brand" field we have a script which changes the available values within the "Team" single select based on the brand value selected.

"Request Type" customfield (New, Update Existing, Perm Change)

  • The "App Request" field has a script which shows / hides fields based on the request type. 

"Team" customfield (Team1, Team2, Team3, Team 4)

We want to have a script within the "Team" field which looks at the values within both the "Client" and "Request Type" field so that:

1) If the "Request Type" is "New" -> This script "overwrites" the previous Client script and opens up all values within the "Team" customfield.

2) If the "Request Type" is either "Update Existing", "Perm Change", the "Team" script would do nothing and leave the values alone. (IE: The field values would still be changed by the "Brand" field script.


Is there anyway this could happen?

Also @Nic Brough -Adaptavist-

I've noticed that (at least in my environment) when a user loads a screen a behavior is within, it seems to take a "second" for the behavior to run; basically making it look like there are a bunch of options before "Jira" takes all those options away and replaces them with what has been scripted within the needed behaviors.

I've tried adding a ".setHidden" to all the needed fields within the "Initializer" scripting section, but even then it still seems like the behaviors takes the same amount of time to "load".

Is there some type of option which allows us to run the behaviors before the form renders to the user?



Suggest an answer

Log in or Sign up to answer