You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
Is there a way to trigger a particular behavior script (Script A) within a separate behavior script? (Script B)
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)
"Request Type" customfield (New, Update Existing, Perm Change)
"Team" customfield (Team1, Team2, Team3, Team 4)
Goal:
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
Thanks,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.