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

Not able to set string as hyperlink for Wiki Attribute in Attribute Customization

Not able to set String as hyperlink for wiki attribute

Here is my code :-

dojo.provide("com.example.ValueProvider");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
    dojo.declare("com.example.ValueProvider", null, {

        getValue: function(attribute, workItem, configuration) {
       
            var test = "Click_here";
            var result = test.link("https://google.com");
            var url = configuration.getStringDefault("WiKiDefaultVal", "{{test") + workItem.getValue(WorkItemAttributes.ID) + "}}";
return url;
        }
    });
})();

0 votes


Accepted answer

Permanent link

Sorry, I misread. For a wiki type attribute you wan to check the syntax: http://wikicreole.org/

see

https://jazz.net/forum/questions/94067/displaying-a-hyperlink-with-text-instead-of-the-url-via-calculated-value/228025

Dependent on the business requirement that is not specified this might be a solution as well:

https://jazz.net/forum/questions/218865/how-to-add-a-hyperlink-text-on-an-rtc-workitem


Manjunath Badiger selected this answer as the correct answer

0 votes

Comments

Sorry, I misread. For a wiki type attribute you wan to check the sytanx: http://wikicreole.org/

And you want also test your syntax works by setting it manually that it works and then look at the content in your customization.

And the syntax is: [[URL|LinkName]] e.g. [[http://www.google.com|Google]]

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

Question asked: Jan 04 '18, 10:59 a.m.

Question was seen: 1,478 times

Last updated: Jan 04 '18, 11:44 a.m.

Confirmation Cancel Confirm