Hi,
I'm using script runner to clone an issue during trantision, the probelm is that there is no notification when that issue is created.
Is there a way to automatically switch to the new issue ? or at least get that little notification box syaing that an issue is created with a link to that issue?
Oded - if you can use 3.0-beta you can use this method in the additional actions: https://jamieechlin.atlassian.net/wiki/display/GRV/Providing+feedback+from+scripts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jamie,
After upgrading to 3.0, We started getting this error in the catalina.log file :
/secure/QuickCreateIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: IC-22994, actionId: 1, file: null
groovy.util.ResourceException: Malformed URL: bundle://147.0:0/, null
any idea why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there... can you check the workflow functions you have on the create transition? Somehow the file path is null or it's inaccessible...?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
MY scripts are under /home/jira/scripts together with some private plugins, to specify this place I added the following lines to setenv.sh file in jira installation.
----
CLASSPATH=/home/jira/scripts
export CLASSPATH
----
My catalina is as follows : ( taken from the startup details )
CATALINA_BASE: /usr/local/atlassian/jira
Using CLASSPATH: /home/jira/scripts:/usr/local/atlassian/jira/bin/bootstrap.jar:/usr/local/atlassian/jira/bin/tomcat-juli.jar
I saw the 'breaking changes' wrriten in the 'Upgrading to 3.0' document but when I added "-Dplugin.script.roots=/home/jira/scripts" to the startup, My script are still not get "picked" by the script runner.
Can you please advice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is the script file path displayed in the UI, for the script in the particular workflow action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/home/jira/scripts/com/onresolve/jira/groovy/canned/workflow/postfunctions/LinkToIssue.groovy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a plain script or is it using the CannedScript interface? If it is, can you send it to me, <firstname>.<lastname>@gmail.com.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is a cannedScript ..
I sent it to you.
Thanks a lot !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
The message is working great .. is there a way to add a link ( or just the issue key ) to the newly cloned issue in the message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the issue key of the newly cloned issue is available as issue.key, no?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry - is this a continuation of an old question? When you say "The message is working great" are you talking about the green popup thing after the workflow function runs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes .. "the green popup thing after the workflow function runs" but when I'm using issue.key I get a null on the message ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is not possible by default. I think its correct that the old issue is shown with new status as that was the intention of the user. In background whatever needs to be done is done, like clone of issue. User gets a link to the cloned issue anyways in the current issue as linked task.
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira default behaviour is to set focuse on the newly cloned issue.
Is there a way get this default behaviour with script runner?
or .. is there a way to notify the user " your cloned issue is .... " ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes JIRA default behaviour is based on user intention to clone the issue. So that is correctly implemented to open the cloned issue.
Notification is not by the way of pop-up/message box. But it is a link to the current issue "Cloned".
I dont think without custom implementation, you can achieve what you want.
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.