Restrict parent-child links between work items?
Hi team.
Example: My use model says that the hierarchy should be:
Epic -> Story -> Task -> Defect
But in some cases where the user forgets to link the work items or are linking wrong.
Example: Epic -> Defect
They already have created templates, but are very useful just when I start a new dev project.
What I need:
Restrict only the links defined in my use model to be created.
Defects can only be children of Task.
Tasks can only be children of Story.
Story can only be children of Epic.
Tks
JG
|
Accepted answer
I implemented something very similar to this in our environment. We had a certain usage model for how we expected work items to be linked to one another in a plan. If users didn't conform to this usage model, our earned value reports wouldn't display correctly. To try and teach people the correct usage model, we implemented a precondition that throws warnings (not errors) if a user violates the expected link relationships. Here's my code: package com.smxg.opex.clm;
import java.util.ArrayList;
import org.eclipse.core.runtime.IProgressMonitor;
import com.ibm.team.links.common.IReference;
public class EnforceEarnedValueUsageModel extends AbstractService implements IOperationAdvisor
IAuditableCommon iac = saveParameter.getSaveOperationParameter().getAuditableCommon();
Ralph Schoon selected this answer as the correct answer
Comments
Ralph Schoon
commented Mar 14 '16, 10:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Thanks for sharing Nate. I am tempted to use this and make it a little bit more configurable to be able to publish it. For now I linked back from my blogs interesting links page.
|
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Mar 14 '16, 9:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You will have to create operational behavior (advisors) that check on work item save, if the rules are kept. There are potential issues with such a construct as well. E.g. you can change the type of a work item. This change can make links that where perfectly fine before illegal.
Start here to find out about extending RTC: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Ralph and Nate, tks a lot.