I am trying to close parent task when all subtask(s) are resolved. As i read the instruction that this should be done at the subtask workflow level typically under resolved and that is what I have done. I also moved this post function under Issue Resolved event per some comments in the instructions as well. Do you know what i might be missing?
I am using one of the script it came with "
Checked the logs and seeing many of these errors: [jira.groovy.listener.ScriptRunnerUberListener] property parse exception
Is the parent issue also assigned?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i was able to get around it by removing Assignee field from workflow screen, so that allowed me to change status. Now status is changing but resolution still says unresolved, any idea?
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.
Add a post function in the workflow to set the resolution instead of setting it up on the screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, yes...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok i tried that. when i am inside the issue I see that Status = resolved and resolution is fixed but when going to project Summary it is still showing that issue as Unresolved and listed under Reopened status which is what is was prior to transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like the issue is not reindexed. Try using IssueIndexManager to reindex the parent issue in the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you have to do it in the script everytime the status is changed and resolution set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did it and it worked, but when i tried again it got stuck again, does it mean i have to do it every time?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so i will need to use my custom script by copying from Run Script, so that i can use inside the workflow right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do you know with what extention and where on the server it needs to reside?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup. Try that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not JAVA savy, i found this:
Where to put your scripts?
Give either the absolute path of the script, or path relative to the working directory of your JIRA instance, which is $CATALINA_BASE in the standalone version. Relative paths are more portable and make switching servers easier.
If you would like to separate out your scripts from jira, as of 2.0.3 you can you use the system property plugin.resource.directories which is a comma-delimited list of paths. Eg in setenv.sh you might add:
JAVA_OPTS=%JAVA_OPTS% -Dplugin.resource.directories=/opt/groovy |
If your scripts/classes have packages, obviously, you will need the correct directories under there. If this property is set, scripts/classes found here will take precedence over any under WEB-INF/classes.
I guess i can put it anywhere on the server as long as I provide the absolute path? What about file format and extension? any help is appreciated.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also seeing this error when resolving subtask: /secure/CommentAssignIssue.jspa [groovy.canned.utils.WorkflowUtils] Errors: {assignee=Issues must be assigned.}
but it is assigned, so i am not sure what it is complaining about
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.