Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Prevent a WI -> WI link based on WIs type/attributes ?

Hi

I have added some new Link Types to RTC and I have a need to prevent the user from linking some WIs to other WIs based on:

- The source/target WIs type
- The value of the source/target WIs attributes

In the link def I use:
...
<itemReferenceType>
...

Is there a way to add more constraints here? if not then I guess I need to add code that would run when adding links - can I get some instructions on what class to use etc'?


Thanks in advance.

0 votes



6 answers

Permanent link
I have added some new Link Types to RTC and I have a need to prevent
the user from linking some WIs to other WIs based on:

- The source/target WIs type
- The value of the source/target WIs attributes

In the link def I use:
..
itemReferenceType
..

Is there a way to add more constraints here? if not then I guess I
need to add code that would run when adding links - can I get some
instructions on what class to use etc'?

The type of constraints that you are describing cannot be configured out
of the box. An option would be to write your own precondition that
checks the custom constraints:

https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Thank you, if I understand correctly only when the user press 'save' I will be able to check if the links are ok. I wanted to check this when the user does the "add link" - is that possible?

thanks

0 votes


Permanent link
On 6/22/10 5:08 PM, shlomiti wrote:
Thank you, if I understand correctly only when the user press 'save' I
will be able to check if the links are ok. I wanted to check this when
the user does the "add link" - is that possible?

We don't provide the hooks that would allow you to prevent adding the
link in the first place.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Hi,

I was thinking then maybe to take a diff approach: add a menu action (available via right-mouse click on a WI) that will enable to add links. In such a menu action I know the WI type and can activate the action only for the allowed types.

Is it possible to add menu actions for WI via a standard extension point?

If so how?

If not )-:

thanks

0 votes


Permanent link
I was thinking then maybe to take a diff approach: add a menu action
(available via right-mouse click on a WI) that will enable to add
links. In such a menu action I know the WI type and can activate the
action only for the allowed types.

Is it possible to add menu actions for WI via a standard extension
point?

Yes menu actions can be contributed using the regular Eclipse object
contribution mechanism. Register the object contribution for IWorkItem
or IWorkItemHandle.

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Thanks, I need this ability in the web Interface, how can i add my actions for WI's in the Web client?

Thanks

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Jun 21 '10, 4:20 a.m.

Question was seen: 5,543 times

Last updated: Jun 21 '10, 4:20 a.m.

Confirmation Cancel Confirm