Hello
I use the script "Create a sub-task" at one post functions.
Condition: cfValues['abc']*.value.contains("X")
Additional issue actions: issue.summary += ' - X'
The description contains "Will optionally reopen a matching sub-task", but this does not work! Everytime I perform the transition, the script creates a subtask although it exists.
Is it a generally problem when I change the summary at additional action? Or is there an workaround for this bug?
regards Nils
> Everytime I perform the transition, the script creates a subtask although it exists.
It tries to reopen a subtask with the provided summary, yet you are appending some string to it. What does "subtask summary" field look like, does it include your "- X" ?
For this feature to work you have to set the subtask summary to some known string, not inherit from parent, otherwise how could it know which one to reopen?
A screenshot of the params would be useful.
Checkbox options: y, x, z
Taskname: "parent"
Subtaskname: "parent - X" -> Like the additional action
issue.summary += ' - X'
The script creates everytime a subtask with the name above. What does the script check, the name?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I know what you meant. The scripit can check/reopen Subtasks when you use the script field "Subtask Summary". The script just check the "Subtask Summary" with the subtasksnames. So I have to change the script :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, exactly... you need to specify the "subtask summary" field for the reopening to work. It's designed for when people want a finite list of simple sub-tasks like "Approval", "Analysis" etc. The code is pretty straightforward.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jamie,
I have created a listener to create sub-tasks when issue is updated. Everytime I perform the issue update, the script creates a subtask although the sub-task exists. Is there a way that I can limit the sub-task creation to once?
Thanks,
Vishali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you should add the following conditon
issue.subTasks.size() == 0
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you should add the following condition
issue.subTasks.size() == 0
cheers
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.