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

How to Create Related Artifacts type Custom Link in CLM 4.0.1

Hi
I have created RTC Custom Link Type named as :----   OWC Custom Links1(Shown below when we click the Custom Link type which type of windows open)
RTC CUSTOM LINKS I HAVE CREATED

The code for this one is :-
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="com.ibm.team.repository.common.linkTypes">
       <linkType
             id="com.ibm.team.workitem.example.linktype.owcwork"
             constrained="false"
             internal="false">
          <target>
             <endpoint
                   displayName="OWC Custom Links1"
                   id="owccustomLinks1"
                   multiplicity="0..n">
                <itemReferenceType
                      itemTypeName="WorkItem"
                      packageURI="com.ibm.team.workitem"/>
             </endpoint>
          </target>
          <source>
             <endpoint
                   displayName="OWCSpecial"
                   id="owcspecial"
                   multiplicity="0..1">
                <itemReferenceType
                      itemTypeName="WorkItem"
                      packageURI="com.ibm.team.workitem"/>
             </endpoint>
          </source>
       </linkType>
   </extension>
</plugin>
-------------------------------

But now i want to create a Custom links for the RTC where we click on that link type it will open the windows as:--
Related Artifacts Custom Link for RTC
For this changes what should be changed in the code.Can you please help me in this.

0 votes

Comments

sorry, I don't understand the question..

that selection you outlined is a dropdown box.

a 'Related Artifact' link is a different type than your custom linktype.
a 'Related Artifact' is assumed to be a link to content OUTSIDE RTC,
as you would have used one of the specific links otherwise. (Related Workitem vs Related Artifact)

Hi Sam,

Thanks for the reply.
Basically Sam i want to create a Related Artifact type- links type where i want to create another link type with the same functionality used by the Related Artifacts.
As for example i want to create a  OWC Related Artifacts Link type name and want to create the same functionality used by Related Artifacts.



3 answers

Permanent link
Ok, so you want to have a new Linktype NAME that acts like Related Artifact.
it has a label and a url link to anything.

Here is the definition of the RelatedArtifact link, from plugin com.ibm.team.workitem.common, plugin.xml.. note that only one side is a workitem. I don't know how this behaves or if there is special code..

<code>
       <linkType
             id="com.ibm.team.workitem.linktype.relatedartifact"
             constrained="false"
             internal="false">
          <target>
             <endpoint
                   displayName="%linktype.relatedartifacts.name"
                   icon="icons/obj16/relatartif_obj.gif"
                   id="relatedArtifact"
                   multiplicity="0..n"/>
          </target>
          <source>
             <endpoint
                   displayName="%linktype.relatedworkitems.name"
                   icon="icons/obj16/related_obj.gif"
                   id="relateWorkItem"
                   multiplicity="0..n">
                <itemReferenceType
                      itemTypeName="WorkItem"
                      packageURI="com.ibm.team.workitem"/>
             </endpoint>
          </source>
       </linkType>
</code>

0 votes

Comments

HI sam
I have tried to create with your plugin.xml ,but its not coming up.
Is not showing new linktype name that acts like Related Artifact.


Permanent link

Does anyone have an actual answer to this?

0 votes


Permanent link

I have explained how to do this here: https://rsjazz.wordpress.com/2014/12/03/creating-custom-link-types-for-rational-team-concert/ I can not be more specific.

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,938
× 7,496
× 45

Question asked: Mar 19 '13, 8:27 a.m.

Question was seen: 6,795 times

Last updated: Aug 14 '18, 6:45 a.m.

Confirmation Cancel Confirm