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.
Hi all!
I'm trying to figure out during the issue creation screen, if the assignee field is:
In any case, I have a script which needs to run only if an issue during creation has not an assignee (the reporter already placed/has chosen an assignee). So if the issue has on the assignee field the values "automatic" or "unassigned", then the script should run.
Keep in mind that automatic will assign the issues to the component leads or project default, based on the project configuration.
So far, I've played with transientVars which returns the modifiedValues only if the script was placed AFTER the issue create PF.
The only solution I've come up with is to create a behavior script, which will populate a CF with a value, is the assignee is a user. And then on my PF script I would check if that field is null or not. If it's null, then the script should run.
Appreciate any advice on this matter :)
Thanx!
Edit 2: Found the solution:
ActionContext.getRequest().getParameter("assignee") will return -1 if automatic is chosen on assignee. The trick is to place the PF before the create issue post function.
Woohoo!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...that's a gem!
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.