It's all about the answers!

Ask a question

Capturing Iteration end and start date using Java Script

Nitin Kaushik (114) | asked Aug 24 '17, 9:47 a.m.

 I have a requirement to change the state of an attribute depending upon the iteration time stamps. Can you please suggest some way through Java script to capture the time stamps of Iteration / Timelines. I have gone through few docs and realize that working with Iteration involves capturing of UUID which I am able to do but how to proceed further with this ?

One answer

permanent link
Ian Wark (7142942) | answered Aug 24 '17, 9:55 p.m.

I think you will struggle to obtain this value via Javascript. Iteration / Timelines are not included in the list of items supported in "Accessing built-in attributes of the work item". You may be banging your head against a wall on this.

If you really want to do this, I suggest creating a Java based attribute customization provider, as explained in this blog.
I did this recently. Although it is a lot more involved in terms of set up, you have a lot more flexibility.

Look at this section at the bottom of the Javascript attribute customization wiki page for deployment information:
"Creating a plug-in that contributes an attribute customization".

Ralph Schoon commented Aug 25 '17, 2:21 a.m. | edited Aug 25 '17, 2:34 a.m.

In general, as Ian correctly states, the JavaScript attribute customization API does not provide any access to that kind of information. It is possible to use HTTP communication to potentially get access to such information.

Please note that I have seen an example recently where a customization rendered the RTC Web UI impossible to use due to excessive communication of JavaScript with the server..

The DACH Jazz Community has done some miracles. See with examples. This might inspire,I don't know.

I would, if this is absolutely necessary, probably look at a Java based attribute customization or a follow up action (Java).

Also see for some hints on limitations of approaches.

Your answer

Register or to post your answer.