It's all about the answers!

Ask a question

Attribute reading the value of another attribute (type=duration)


alex ioan (33710) | asked Aug 23 '13, 4:01 a.m.
edited Aug 23 '13, 9:46 a.m. by Ralph Schoon (59.4k23642)
Hi,

From dojo java script that is attached to an attribute is it possible to read the value of another custom attribute of type duration?

If yes i would appreciate how can i do this.

Accepted answer


permanent link
Ralph Schoon (59.4k23642) | answered Aug 23 '13, 8:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
 I would suggest to make yourself familiar with lab 5 of https://jazz.net/library/article/1093
alex ioan selected this answer as the correct answer

Comments
Ralph Schoon commented Aug 23 '13, 8:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

And yes, in a script based attribute customization you can access all attributes of the work item. 


alex ioan commented Aug 23 '13, 9:43 a.m.

Hi Ralph,

Thank you for your tips.
I've checked the RTC API documentation for this topic and it is stated there that from javascripts only attributes of type string, timestmap are accessible

Here is the URL where i found this piece of information:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript

I'm looking forward to get you opinion on this.

Thank you.
Bye


Ralph Schoon commented Aug 23 '13, 10:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Alex,

my opinion/current knowledge on that is written down in Lab 5 of said workshop https://jazz.net/library/article/1093 and executed in the Attribute Spy script which shows what data you get how and how to display it. In addition the above wiki entry explains how to convert timestamps and date attributes. So I would expect it to be working. You should really go through both sources of information thoroughly to avoid having to wait for answers in the forum.

One other answer



permanent link
Lauren Hayward Schaefer (3.3k11427) | answered Aug 23 '13, 7:04 a.m.
JAZZ DEVELOPER
Hi Alex,

It seems like it should be possible.  This post shows how to get the value of a custom attribute: https://jazz.net/forum/questions/122588/javascript-condition-based-on-value-of-custom-attribute.

Your answer


Register or to post your answer.