- edited description
How to reflect the changes in the Stories when we add or remove component from the EPIC?
I have three different issue types in my project. i>Parent Project Item(EPIC) ii>Sizing story iii>Component story Now when we click on Identify Impacts transition in EPIC workflow, it creates issues for Sizing story and also component story.It creates multiple component stories depending upon the Components that we have selected . Lets say we have selected component1 and component2 from the components on Identify Impacts transition ,then the issues in the EPIC would be with the following names:- i>Sizing for "Parent Summary" ii>Component1 Task for "Parent Summary" iii>Component2 Task for "Parent Summary".
Sizing for "Parent Summary"(Sizing Story):- Sizing story, it takes the same components that we have selected in EPIC and it creates the subtasks based on the components we selected.The names of these sub-tasks are:- i>Component1 Sizing for "Parent Summary" ii>Component2 Sizing for "Parent Summary"
We have also linked Component story with the respective Sizing sub-tasks https://bitbucket.org/fcarmario/jira-workflow-toolbox/issues/594/how-to-link-the-subtask-issuetype-of
Now if we came to know that the component is not impacted and if we have removed it from the epic, then the status for the component story that is being created initially should be canceled or not impacted and also the respective Sizing sub-task that we have linked with the component story should also be canceled or not impacted.Can this be Achieved?
Comments (31)
-
reporter -
repo owner Hi @DineshLoyapalli,
To do it we have to prevent Components from being edited using the ordinary way, i.e., in the edit screen, but using a reflexive transition (e.g. called "Edit Components") that we will use to execute the post-function for transitioning the non-impacted.
Is the described restriction acceptable for you?
-
reporter We should be able to select the multiple components at a time.Can we do that if we make them non-Editable?
Here is the component field
-
repo owner Yes, you can. The way to do it is as described:
- Remove Components from EDIT screen.
- Create a screen called "Screen for editing Components", and add to it field Components.
- Create a global reflexive transition called "Edit Components". Global transitions are available from any status in the workflow (anyway you can restrict them using a condition if you need to), and reflexive transitions don't change status, since they have the same status as origin and destination. These kind of transitions are created like shown in the following screenshot:
- Associate screen "Screen for editing Components" to transition "Edit Components".
Once, you have done it I will explain which post-function do you have to include in it.
-
reporter yup will let you know once done.
-
reporter I have created the screen and also the Global transition and associated the screen with the transition.
-
repo owner Some question:
- You will be editing the Components field on Epic issue. Is it ok?
- Cancelling the Story and the Sizing sub-tasks is to execute a transition on those issues in order to move them to Cancelled status. Is it ok?
-
reporter Yup it's okay.
-
repo owner Add to transition "Edit Components" post-function "Write field on issues returned by JQL Query or Issue List" with the following configuration:
Issue list expression is:
filterByPredicate(linkedIssues("is Epic of") UNION subtasks(), ^%{00094} not in %{00094})
where
%{00094}
is field code for Components.Note that a transition from current status to Cancelled should exist in the the workflows of Story and Sizing subtask. The conditions and validations in those transition should be satisfied.
-
reporter okay.we don't have Cancelled status in story and the sizing sub-task.I will create Cancelled Status First and then will add the post function you have mentioned above.
-
reporter Getting this error when i tried to delete the component..Initially i selected 2 components Doc Types, ICMP IM.
-
repo owner Try selecting "Issue status (delayed writing)" as target field, instead of "Issue status".
-
reporter The status of the Component story has changed to cancelled if we remove the components from EPIC.We also have Sizing story which takes all the components from the EPIC and creates the sub-tasks for all the components selected.Now the status of the sub-task should also be changed to Cancelled if we remove a Component from the EPIC.
We have also created a Link between Component Story and the Respective Sizing Sub-task.Please find the below link https://bitbucket.org/fcarmario/jira-workflow-toolbox/issues/594/how-to-link-the-subtask-issuetype-of
Sizing story does not have a Cancelled status but eh sub-task in the sizing story has Cancelled status.We have to change the sizing sub-task status to cancel..
-
repo owner Hi @DineshLoyapalli,
Sorry, I made a mistake in my issue list expression. Use the following one instead:
filterByPredicate(linkedIssues("is Epic of") UNION subtasks(linkedIssues("is Epic of")), ^%{00094} not in %{00094})
-
reporter Thanks Fidel.Its working
-
repo owner - changed status to resolved
You are welcome :)
-
reporter - changed status to open
-
reporter I have a Sizing story which takes all the components from the EPIC and creates the sub-tasks for all the components selected.Now when we add a new component to the epic it should also get added to the story and also sub-task has to be created for the component that we have added
-
reporter now the components are not being updated at sizing story when we add a new component and do Impact analysis transition. Initially we used to make this transition only once but now this transition is available for multiple statues and now when ever we add a new component if has to reflect the changes to Sizing story and create sub-tasks for the components that are not existing and it should not create the sub-tasks for the components that are already there..
-
reporter can you please help me out with this?
-
repo owner Hi @DineshLoyapalli,
Please, attach screenshot of post-function's tab of your "Impact analysis" transition. I want to see all the transitions you are executing and their configurations.
-
reporter Here is the list of post functions
-
repo owner Hi @DineshLoyapalli,
Add "Create issues and subtasks" post-function to "Impact analysis" transition in epic's workflow with the following configuration:
String list expression for seed strings is:
filterByPredicate(toStringList(%{00094}), count(filterByPredicate(subtasks(filterByIssueType(linkedIssues("is Epic of"), "Sizing Story")), ^%{00000} ~ ^%)) = 0)
where
%{00094}
is field code for Components, and%{00000}
is field code for Sumary.Issue list for parent selection is:
filterByIssueType(linkedIssues("is Epic of"), "Sizing Story")
String expression for Summary is:
^% + " Sizing for " + %{00000}
Issue list expression for issue links to component stories is:
filterByPredicate(filterByIssueType(linkedIssues("is Epic of"), "Component Story"), ^2%{00000} ~ ^%)
Boolean expression for conditional execution is:
%{00014} = "Parent Project Item" AND count(filterByIssueType(linkedIssues("is Epic of"), "Sizing Story")) > 0
@DineshLoyapalli, I hope you appreciate the effort employed for answering such a complex question.
-
reporter Thank you so much....you always respond within no time...Let me add the post function and see if its working fine or not....
Thank you
-
reporter Its creating the sizing sub-tasks in the sizing story...but the component field in the Sizing story is not getting updated with the components after making the identify impacts transition again..
-
repo owner Hi @DineshLoyapalli,
I knew that, but prefer to solve the problems one by one.
You should add "Write field on issues returned by JQL Query or Issue List" post-function to "Edit Components" transition in epic's workflow with the following configuration:
Issue list expression is:
filterByIssueType(linkedIssues("is Epic of"), "Sizing Story")
-
reporter Thanks Fidel.I think when i click on Identify Impacts it should update the components with the newly selected components.I will add this Post function to the Identify Impacts Transition as well as "Edit Components" Transition.
Thanks
-
reporter Fidel,
Now when we click on "Identify Impacts Transition" and select the same component that we have Cancelled Initially ,it should change the status of the already created Component story status to Open and also the respective Sizing sub-task to Open Status and also the values that we have excluded initially from the overall sizing should be added up again.Can this be achieved?
-
repo owner Hi @DineshLoyapalli,
I knew that, but prefer to solve the problems one by one.
You should add "Write field on issues returned by JQL Query or Issue List" post-function to Identify Impacts Transition and "Edit Components" transitions in epic's workflow with the following configuration:
Issue list expression is:
filterByPredicate(linkedIssues("is Epic of") UNION subtasks(linkedIssues("is Epic of")), ^%{00094} in %{00094} AND ^%{00016} = "Cancelled")
where
%{00094}
is field code for Components, and%{00016}
is field code for Issue status.Beware to write the name of the Cancelled status exactly as it is. Beware that JIRA UI shows the name of the status in uppercase. You can check up the actual name of the status at Administration > Issues > Issue status.
-
reporter Thank you...Its working fine..
-
repo owner - changed status to resolved
You are welcome.
- Log in to comment