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

Is it possible to create a Module Link to an outside URL using the RM API?

 I would like to create a Module Link using the EXTERNAL_LINK_TO type to link to a URL. The description of RM.Data.createLink() doesn't seem to have a way to do this. This is the code I tried:

RM.Data.createLink(modRef, RM.Data.LinkTypes.EXTERNAL_LINK_TO, MY_URL, function(result) {
	if(result.code === RM.OperationResult.OPERATION_OK) {
		alert("success");
	} else {
		alert("failure");
	}
});
This code returns a failure. Should I be formatting it differently or is there another function I can use?

Thank you

0 votes



3 answers

Permanent link
Are you using RM Extension? Then, you need to make sure using the correct version (v4.0.5).
Also I think the EXTERNAL_LINK_TO should be a constant linkTypes.

0 votes

Comments

Yes, I am using v4.0.5.

I am not sure I understand what you mean about EXTERNAL_LINK_TO. Is my code incorrect? Can you suggest how it should be formatted?

From the API, I can see the EXTERNAL_LINK_TO is a constant type and format to use the constant value should be RM.Constants.EXTERNAL_LINK_TO.
Not sure if this is the cause of your issue but at least you could try :)


Permanent link
Unfortunately there is no way to create or remove external links in the current version of the API, I raised the following enhancement
RM API should offer a way to create and delete external links (84225)

0 votes


Permanent link

 Hello Everyone


Is there a solution to this yet?
I am having similar problem

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,952

Question asked: Jan 08 '14, 3:09 p.m.

Question was seen: 6,024 times

Last updated: Jan 10 '18, 4:50 p.m.

Confirmation Cancel Confirm