Move existing epic (in Done status) to QA status, when new child is created

Issue #286 resolved
Itamar Ben-Sinai created an issue

Hi I'm trying to use "Write field on linked issues or subtasks" to move epic out of its Done status. Workflow allows anyone to move from Done to QA. I guess I don't get the logic in this post function Can you help me?

Thanks

The post function:

Text parsed in basic mode QA will be copied to field Execute transition (delayed execution) in linked issues or subtasks filtering by: Inward issue link types: has Epic. Outward issue link types: none Subtasks won't be written. Sibling subtasks won't be written. Issue types: Epic. Statuses: Done and Closed. Linked issues or subtasks may belong to any project. Linked issues and subtasks should satisfy: count(filterByStatus(filterByIssueType(linkedIssues("is Epic of"), "Story, Bug, task, Test Plan"), "New, Open")) = count(filterByIssueType(linkedIssues("is Epic of"), "Story, Bug, task, Test Plan")) - 1 This feature will be run as user in field Current user.

Comments (21)

  1. Fidel Castro Armario repo owner

    Hi Itamar,

    I need some information:

    1. Confirm the version of JIRA Workflow Toolbox. According to your description of the post-function configuration you should be using at least version 2.2.2.
    2. Attach a screenshot of your workflow showing the names of the transitions and statuses. I only need to see the part of the workflow related with your question. An XML export of your workflow will also be helpful.
    3. Which version of JIRA are you using?
  2. Fidel Castro Armario repo owner

    Hi Itamar, there isn't any file attached to the issue, and questions 1 and 3 are not yet answered.

  3. Fidel Castro Armario repo owner
    • changed version to 2.2.8

    Hi Itamar,

    Do the following changes in your Bug's workflow:

    1. Move post-function "Creates the issue originally" in "Create" transition to first position in execution order.

    2. Clean parameter "Filtering by field values" in "Write field on linked issues or subtasks" post-function, since from version 2.2.8 it's not necessary to use it for transitioning other issues.

  4. Itamar Ben-Sinai reporter

    Hi, It is still not moving the epic out of Done Log: 2016-04-09 23:46:50,098 http-nio-8080-exec-46 DEBUG admin 1426x64051x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] BLOCKED ISSUE CLP-485; BLOCKED ISSUES SIZE: 1 2016-04-09 23:46:50,098 http-nio-8080-exec-46 DEBUG admin 1426x64051x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] WORKFLOW EVENT INVOKED FOR ISSUE CLP-485 2016-04-09 23:46:50,098 http-nio-8080-exec-46 DEBUG admin 1426x64051x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] REINDEXER-WRITER LISTENER INVOKED BY EVENT Issue Created / ISSUE: CLP-485 / PARAMS: {eventsource=workflow, baseurl=http://jira:8080} 2016-04-09 23:46:50,098 http-nio-8080-exec-46 DEBUG admin 1426x64051x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] OPERATION: PROCESS; MODE: PEEK CLP-485; INITIAL SIZE: 0; FINAL SIZE: 0; RETURNED: null 2016-04-09 23:46:50,098 http-nio-8080-exec-46 DEBUG admin 1426x64051x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] *** UNBLOCKED ISSUE CLP-485; BLOCKED ISSUES SIZE: 0

  5. Itamar Ben-Sinai reporter

    More:

    On Open new task under Epi:

    2016-04-09 23:58:12,301 http-nio-8080-exec-42 DEBUG admin 1438x64538x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] BLOCKED ISSUE CLP-488; BLOCKED ISSUES SIZE: 1 2016-04-09 23:58:12,301 http-nio-8080-exec-42 DEBUG admin 1438x64538x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] WORKFLOW EVENT INVOKED FOR ISSUE CLP-488 2016-04-09 23:58:12,301 http-nio-8080-exec-42 DEBUG admin 1438x64538x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] REINDEXER-WRITER LISTENER INVOKED BY EVENT Issue Created / ISSUE: CLP-488 / PARAMS: {eventsource=workflow, baseurl=http://jira:8080} 2016-04-09 23:58:12,316 http-nio-8080-exec-42 DEBUG admin 1438x64538x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] OPERATION: PROCESS; MODE: PEEK CLP-488; INITIAL SIZE: 0; FINAL SIZE: 0; RETURNED: null 2016-04-09 23:58:12,316 http-nio-8080-exec-42 DEBUG admin 1438x64538x1 p1zxct 126.0.0.46 /secure/QuickCreateIssue.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] *** UNBLOCKED ISSUE CLP-488; BLOCKED ISSUES SIZE: 0

    On Closing task under epic:

    2016-04-09 23:59:06,964 http-nio-8080-exec-46 DEBUG admin 1439x64545x1 p1zxct 126.0.0.46 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] BLOCKED ISSUE CLP-488; BLOCKED ISSUES SIZE: 1 2016-04-09 23:59:06,964 http-nio-8080-exec-46 DEBUG admin 1439x64545x1 p1zxct 126.0.0.46 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] WORKFLOW EVENT INVOKED FOR ISSUE CLP-488 2016-04-09 23:59:06,964 http-nio-8080-exec-46 DEBUG admin 1439x64545x1 p1zxct 126.0.0.46 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.listeners.EndOfTransitionEventListener] REINDEXER-WRITER LISTENER INVOKED BY EVENT Generic Event / ISSUE: CLP-488 / PARAMS: {eventsource=workflow, baseurl=http://jira:8080} 2016-04-09 23:59:06,964 http-nio-8080-exec-46 DEBUG admin 1439x64545x1 p1zxct 126.0.0.46 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] OPERATION: PROCESS; MODE: PEEK CLP-488; INITIAL SIZE: 0; FINAL SIZE: 0; RETURNED: null 2016-04-09 23:59:06,964 http-nio-8080-exec-46 DEBUG admin 1439x64545x1 p1zxct 126.0.0.46 /secure/WorkflowUIDispatcher.jspa [c.f.j.p.workflowToolbox.shared.IssueTransitionManager] *** UNBLOCKED ISSUE CLP-488; BLOCKED ISSUES SIZE: 0 2016-04-09 23:59:07,619 http-nio-8080-exec-44 ERROR admin 1439x64551x2 p1zxct 126.0.0.46 /rest/viewIssue/1/remoteIssueLink/render/10400 [c.a.j.p.v.issuelink.rest.RemoteIssueLinkResource] Error occurred while generating final HTML for remote issue link: java.lang.IllegalArgumentException: No Application Link found for the given Application Id: 2b5b0301-3661-3a10-a8f8-a24610346e69 or URL: http://confluence:8090/pages/viewpage.action?pageId=2490370

  6. Itamar Ben-Sinai reporter

    After upgrading the plugin, my initial move epic to Done when all linked issue (has epic) that was working with previous version, is not working anymore

    Need your urgent assistance

  7. Fidel Castro Armario repo owner

    Hi Itamar,

    Can you please send me the whole log file of your server to support@workflowarts.com?

    Which version of the plugin had you installed before updating the plugin, and now that you have updated the plugin?

    Which issue types are the following issues: CLP-485 and CLP-488?

    As a temporary workaround you can always reinstall the old version of the plugin. To do it follow this steps:

    1. Download the old version from version history. It's a .jar file.

    2. Uninstall your current version.

    3. Install the old version uploading the .jar file you downloaded in step 1.

  8. Fidel Castro Armario repo owner

    Hi Itamar, any news about this issue? Please, read my previous post an answer my 3 questions in it.

    We can also have a screen-share by Skype. My Skype user is fidel100r. Please, propose a time for the meeting if you can have it.

  9. Fidel Castro Armario repo owner

    No, it isn't a problem by itself, simply I wanted to know your previous version.

    I have loaded your workflows in a JIRA instance and have achieved to make them work after some changes:

    Changes in transition "Create Issue" in Bug's workflow:

    1. Move post-function "Creates the issue originally" to first position in execution order.

    2. Clean parameter "Filtering by field values" in "Write field on linked issues or subtasks" post-function, since from version 2.2.8 it's not necessary to use it for transitioning other issues.

    After these 2 changes transition "Create Issue" in Bug's workflow looks like this:

    bug-create-issue.png

    Changes in transition "Reopen Issue" in Bug's workflow:

    1) You are using a post-function of another plugin in this transition. You should remove it and use "Write field on linked issues or subtasks" instead with the following configuration:

    reopen.png

    If you want assistance for doing this changes, I will be available at Skype for the next 2 hours. My user is fidel100r.

  10. Itamar Ben-Sinai reporter

    Hi, Thanks for your assistance. I was able to transit the epic to done and back during the bug workflow transition. However, Trying to move Epic out of done when creating new issue from the epic, was not successful How can I achieve that?

    Thanks Itamar

  11. Fidel Castro Armario repo owner

    Can you, please, attach a screenshot of "Create Issue" transition of your Bug's workflow?

    I will be available for a Skype screen-share for the next 2 hours.

  12. Log in to comment