Re: prevent reopening subtask when main issue is closed

[email protected] Mon, 04 Jul 2011 15:12:50 CDT
Newsgroups gmane.comp.java.jira.user
Message-ID <23842265.633771309810400780.JavaMail.j2ee_forums.atlassian.com@atlassian12.managed.contegix.com>
You could use the [simple scripted condition|https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts?replyToComment=64127823#Built-InScripts-Simplescriptedcondition] from the [script runner plugin|https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner].

Your condition would simply be:

{code}! issue.isSubTask() || ! issue.parentObject.resolutionObject{code}

which you'd put on the Reopen or whatever transition of the subtask workflow. That prevents reopening if the parent is resolved. To prevent reopen if the parent has status closed you could change that to:

{code}issue.parentObject.statusObject.name != "Closed"{code}

jamie
--
Post by JamieEchlin - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=55121
_______________________________________________
Jira-user mailing list
[email protected]
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-user