I have a SIL script set to execute on two different listeners: one for Issue Created and one for Issue Updated (the same script for both). The script executes fine when an issue is created but it's not being executed when an issue is updated. For testing purposes, I used a simple script that just has a logPrint statement that tells me the script has been executed. Any ideas?
Community moderators have prevented the ability to post new answers.
Hi Chris,
Indeed, the change on Epic Link does not trigger / fire any event. I would open up a bug on GH project. However, JJUPIN is here to help you so maybe you can circumvent that by using liveFields .... not the ideal solution but ...
Sorry, not GH, let's call it by its marketing name: JIRA Agile.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Radu. I've written up https://jira.atlassian.com/browse/GHS-12299. LiveFields should be a viable option. So I assume I would "watch" the epic link field. What trigger should I use to invoke my script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume that should be "change" JS event on the lfWatch() call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Urrgh...I think I know the problem. The field I happened to be changing was the Epic Link field and I just noticed our JJupin Agile plugin expired. If I change a non-agile field, the script gets called. At least I hope that's what it is...will confirm when I get a new license key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this should be the cause. It should also write something in the logs when you're using the agile CFs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Silviu. I updated the license with a valid key (new trial key while I get approval for purchase) and it's still not working. When I update the "Epic Link" field, nothing shows up in the log. Is there something else I need to do? I have logging set to "INFO" if that matters. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And it seems like other Agile fields work fine (Epic Name, Sprint, etc.) all execute the script when they get updated. It seems like it's just the Epic Link field change that doesn't cause it to fire.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay...this looks to be a JIRA problem. I tried using ScriptRunner's built-in listener to do the same thing and it also doesn't fire when updating the Epic Link field -- all other fields work fine. Would be great if someone could validate this as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check their issue tracker, maybe there's a bug in the JIRA Agile you're using.
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.