It's all about the answers!

Ask a question

How to Create Related Artifacts type Custom Link in CLM 4.0.1


Preetam Sikdar (61316) | asked Mar 19 '13, 8:27 a.m.
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.

Comments
sam detweiler commented Mar 19 '13, 8:57 a.m.

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)


Preetam Sikdar commented Mar 19 '13, 1:48 p.m.

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
sam detweiler (12.5k6195201) | answered Mar 19 '13, 3:01 p.m.
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>

Comments
Preetam Sikdar commented Mar 28 '13, 2:15 a.m.

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
Ilona Krammer (159549) | answered Aug 14 '18, 6:32 a.m.

Does anyone have an actual answer to this?


permanent link
Ralph Schoon (63.4k33646) | answered Aug 14 '18, 6:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or 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.