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

How to add a RTC work item tag with javascript ?

Hi
Could somebody help me with javascript to add tag in the workitem attribute ? A exemple ?

The code follow get a String
var myTags = workItem.getValue(WorkItemAttributes.TAGS);

But when I return myTags I have the error :
java.lang.String incompatible with java.util.Collection.

Thanks !

0 votes



2 answers

Permanent link

If you worj in the same context as https://jazz.net/forum/questions/255039/set-a-tag-using-calculated-values-script please coordinate your work. If not see the answers there.

0 votes


Permanent link

For all I can tell you can not set a tag using JavaScript attribute customization. The tag is a collection and the casting done in the JavaScript API does not work correctly and you get the error you mention above.

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,936
× 24

Question asked: Jul 25 '18, 5:25 a.m.

Question was seen: 2,331 times

Last updated: Jul 25 '18, 11:34 a.m.

Confirmation Cancel Confirm