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

Setting the current iteration programmatically

 Hello,
Is there a way via APIs to set the current iteration based on the current date? Let's say, I have a 2 week sprint, every 2 weeks I'd like to set via a cron job the current iteration for my projects.
Thanks in advance for your help.

0 votes

Comments

there is nothing out of the box. you could create a tool to do this with the api. 


you will have to loop thru the timelines on the projectarea, as there can be a different 'current' iteration for each timeline. 

I just learned how to do something similar. 

logon, find the project, get its timelines, for each, get the iterations (for each get their iterations), find the interation you wish to set as current, then 
timeline.setCurrentIteration(new iteration);

then you have to save the project and the affected timeline together. 
processItemClient.save(list_of_modified_objects, null); 

 Thanks!


Be the first one to answer this question!

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
× 6

Question asked: Dec 17 '13, 10:13 a.m.

Question was seen: 3,700 times

Last updated: Dec 17 '13, 11:04 a.m.

Confirmation Cancel Confirm