You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have tried to create a Behavior for a field that creates an error and displays a message if I try to set an End Date before a Start Date. I've tried the script attached. It gives no script errors, but also does not work. This seems like a common thing, but I can't find a thread that has one that works
Hi @James Breunig ,
The script is attached to the Downtime Start field, which means, that it is executed, after the Downtime Start field is filled in. When you create the issue, you probably first fill in the Downtime Start field, then the validator is executed, but the Downtime End field is empty, so nothing happens, and then you fill in the Downtine End field, but there is no validator set.
Could it be the possible explanation?
So maybe you could add the second validator to the Downtime End field, because you want to do the check every time one of the fields is changed?
I also believe it is not neccessary to have all the imports in the script. It should work without them.
I've copied the script above into a server-side script for Downtime End. I've tried changing the order I fill them in. Still appears not to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's strange, it works for me :-(
Just quick check - did you setup mapping for the behaviour?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow! That was it! I didn't know you have to pick a specific issuetype or it would not work. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.