It's all about the answers!

Ask a question

How could I get all Timeline informations about a specific Project Area? (Dojo/JS)

Jonas Studer (207917) | asked Jun 17 '14, 7:58 a.m.
edited Jun 17 '14, 9:43 a.m.
Hy there fellas,

I'm working with dojo and javascript, trying to create new Widgets.
At the moment I wanna make an Absence Widget.
A special requirement there is, that I also show the iterations.
I've got the UUID of a specific Project Area, but I dont know how to get the related timelines.
Any Ideas?

Thanks in advance

Jonas Studer

One answer

permanent link
Jonas Studer (207917) | answered Jun 30 '14, 3:10 a.m.
edited Jul 24 '14, 4:04 a.m.
Hy there fellas,

I've managed it on my own to it out.
But what cruel being would I be, if I don't share the answer with you.

1: Answer to this question:
var serviceObjectSprints = {
          self: this, //This you don't really need. But in this way you could iteract with the viewlet [this.self.test()]
          success: function(page) {
          failure: function (error) {
var srh3 = new ServiceResponseHandler(serviceObjectSprints, "success", "failure");
var args = {
       includeArchived: false, //Show archived too if true
       processAreaContext: 1, //IDK what's this for
       uuid: this.getScopeItem().itemId, //Place here the ProjArea UUID
ProcessClient.getProjectDevelopmentLines(args, srh3); //Returns an Object-Array with all Sprints in it

2: And with this construct you can get ALL(or the rest) of your Timelines:
args = {
       includeArchived: false,
       uuid: actualDevelopmentline.itemId,
ProcessClient.getIterations(args, srh4);

Your answer

Register or to post your answer.