I've created a "Create Subtask on Transition" post-function in my workflow, but would like it to only create on the condition that a subtask with the same summary does not already exist. To do this, I've created the following subtask creation/condition combination:
This is intended to:
Count the number of subtasks that have summaries containing "Assign Author and Reviewer". If this count is 0, then create this subtask on transition. If this count is >=1, do not create this subtask and continue with the transition.
However, instead, it seems to be stopping the transition and looping back to the previous status.
I seem to have misunderstood something. Does anyone have any suggestions?
I recently stumbled on this looking to do something very similar but with issue types, only difference in my syntax is I did (adding the "^" prior to the field to check)
count(filterByPredicate(subtasks(), ^%{issue.issueType} = "Setup In Time Recording System")) = 0
That seems to work perfectly for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.