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.
I want to validate a JSM request using scriptrunner in the create step. But I'm struggling to get it to work.
I have the following to check the id of an Asset field is the value e want and to also check a second dependent field is populated.
(issue?.customfield_12411.filter(it => it.objectId == "608").length > 0)
&&
issue?.customfield_10344 != null
This works as expected in the Test option o the validator set up screen.
But in situ, creating a request ticket in the portal it returns the error message in all conditions.
Has anyone accessed Cloud Assets in a jira expression?
@Tom ListerI know that when we were using ProForma for forms, we had a hell of a time getting the values of custom fields. Essentially no matter what we did, if the validator was running on issue create it would run BEFORE the custom field had a value filled in.
I think I eventually ended up adding some code to my validator that first reindexed the specific issue, and only then checked it for the value of the custom field.
Hi @Ken McClean
I have been told by Appfire that this is a known bug and is being tracked here
https://jira.atlassian.com/browse/JSDCLOUD-12479
We may look at automation to check the data and notify the reporter that there are data conditions to check.
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.