Is it possible restrict saving a task until a particular link is created between the task and another work item?
Hi there,
Is it possible restrict saving a task until a particular link is created between the task and another work item? For our design, it is important that every task MUST have a parent work item. Is it possible to restrict saving the task until a parent work item is added? Thanks, KH |
3 answers
Hi,
I'm not sure if it's possible to require the parent link type. However, you could add a custom attribute of type Work Item and then make that attribute required. Comments
kuo hao tah
commented Oct 14 '12, 7:08 p.m.
Hi Lauren,
Thanks for your reply. Could you please elaborate more? I'm interested to know what you mean by 'add a required attribute of type Work Item' , and how that might help provide a workaround solution for my issue, ie
every task MUST have a parent work item. Is it possible to restrict saving the task until a parent work item is added? Thanks,
KH
|
Lauren Hayward Schaefer (3.3k●1●17●27)
| answered Oct 15 '12, 6:49 a.m.
JAZZ DEVELOPER edited Oct 15 '12, 6:50 a.m.
Hi,
You could add a new custom attribute of type work item:
You'll then need to add the attribute to the editor so the attribute will be displayed:
Finally, you'll want to make your attribute required:
This won't create a two-way link like regular links do, but it will ensure that every work item has indicated what its parent work item is.
Comments
kuo hao tah
commented Oct 16 '12, 11:38 p.m.
Hi Lauren, Thanks for that suggestion. I've implemented exactly as your description, and works exactly as how you described. However, this would require the user to complete 2 steps : a) First create a Link between the task and a parent work item b) Then add the work item ID that should be the parent It would be great if there was automatically a link between the new 'Parent' attribute and the actual parent link. In fact, this already exists in the 'quick information' 'Parent' link, we just need some way to make that relationship mandatory. Thanks,
|
Ralph Schoon (63.1k●3●36●46)
| answered Oct 17 '12, 1:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You could create a custom precondition to require the link. http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ has all you would need. https://jazz.net/library/article/1000 describes the details. It is not trivial though.
Comments Nice post! I didn't realize that was possible.
Ralph Schoon
commented Oct 17 '12, 6:46 a.m.
| edited Oct 17 '12, 6:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Well, I just realized there are some slight differences between what is needed and what is in the post. The post describes a participant.
|
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.