Hi, I have created a checkbox field in Jira for which I have a set of values that will need to update different staff when selected. i.e.
Checkbox for 'Jira' is selected = Email comes to me
Checkbox for 'email' is selected = Email goes to someone else or group
I installed script runner for this and have been working all day to get the notifications sent but nothing goes through. Can you help and offer solutions to this issue?
Thanks
Is it a problem with email-sending or a problem with getting Script Runner to "catch" relevant field values?
This is an example of what Im attempting to do. I enter the script in but the text shows up red, which would suggest to me that there is a missing link between the issue type and the condition? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No,. that's just the syntax highlighting, which is showing that 'Bug' is a string literal. There is no problem there. There should be a preview button when you can test if the condition evaluated to true or false.
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.
Hi, Thanks for this. I had found this on another site but I added the values in brackets and they showed up red which I understood to be indicated a missing value?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't really understand what you mean, or rather where you are adding these values, can you post a screenshot?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's lots of different ways of doing this. Let's say you you have done it by creating a notification scheme with different events, where you are specifying the recipient.
Then you would have two Fire event post-functions (or listeners) with different conditions, which would fire the appropriate event. Condition would be defined like:
cfValues['Name of field']?.values.contains("Jira")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jamie, can you tell how take status(checked(true) or unchecked(false)) for this field ?
i'am mean, some like this:
if (name of field == true) ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know our Jira email is setup correctly so im assuming that the issue is down to incorrect syntax? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.