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

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

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

0 votes



One answer

Permanent link
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);

2 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
× 1,220

Question asked: Jun 17 '14, 7:58 a.m.

Question was seen: 4,703 times

Last updated: Jul 24 '14, 4:04 a.m.

Confirmation Cancel Confirm