Hi,
One of the workflow we use has a condition that all subtasks of a story should be closed before a story is moved into next status.However the request is that some subtasks created for other purpose for the same story could remain open but still the story should be able to be moved to the next step.
I tried with scripts as well but i am stuck.Is there any waz out for this problem?
If the workflow transition has a status that the parent story can only move provided that all its subtasks are closed,then is it possible to modify this so that only certain tasks need to be closed while the others could remain open?
Is there any way to do that because i tried a lot but am still hiting a roadblock?
Hi,
If i use a transition with a condition that the parent story can only be moved if all its subtasks are closed,is it possible to make this condition selective that a certain number of subtasks could remain open.This is to implement a requirement that certain subatasks need to remain open while the others are closed.
Does anybody have an idea of a workaround?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am unable to use JQl to take the issue types for a particular parent i.e., only the subtasks blonging to a particular parent need to be checked before the transition.Is it possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jamie.I am now trying out the simple script.I havent received any positive result but i will keep trying
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may have used every possible combination, but you've used it in the wrong place. If you like, send a screenshot when using the "simple scripted condition". Alternatively you could write your own plugin if that's easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error is still the same |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would like to add that there is no resolution set for any tasks
its only the status and hence the status should be Closed(sub-task)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But i have used every possible combination like the ones shown above.I guess i am not going wrong anywhere as these are not giving the desired result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK then instead of: issue.resolutionObject, use: issue.statusObject.name == "Closed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK you are using https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-JQLQueryCondition - the code I gave you is for: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Simplescriptedcondition
ie the "simple scripted condition". It's probably possible to use JQL but more complex.
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 Jamie,
I am new to this kind of script so i am at a loss.I uesd it and it says MismatchedSetException(46!=null).
Could you please tell me if i could custoimize this thing like the ones i have made myself?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To be honest, none of those make any sense. If you want that all subtasks should be resolved except those of type "Testsub" - and that needs to be the issue type, not the summary or something, you could use:
issue.subTaskObjects.findAll{it.issueTypeObject.name != "Testsub"}.every{issue.resolutionObject}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The condition tester with asserts can help you get the code right... https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-PowerAssertions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
tried this as well
"issuetype = Story and issuetype = Sub-task And status = "Closed (sub-task)" and issuetype= Testsub and status = "In Progress (sub-task)""
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Itried some more scripts and way out after this but it didnt seem to help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
type=sub-task AND issuetype!=Testsub AND status= closed(Sub-Task)
Here testsub is the reference subtask i created for some testing tasks for a story.
I wanted to imply with this that though the other sub tasks of the story could be closed but the ones with type Testsub may remain open.i.e., the story could transition only if subtasks other than the Testsub ones are closed.
Does this make sense?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post the script that you tried, and be specific about what subtasks should be allowed to be open. This should be easy.
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.