Strange behavior when assigning an Iteration to a Testplan using REST
Hi,
I try to assign an existing Iteration to an existing testplan in RQM 6.0.1 using the REST-API. I'm using the option "Enable team areas and support for multiple timelines." and have two teams using the same timeline. I update the existing testplan that has no iteration set via REST: ... <ns2:parentIteration ns6:resource="<server>:9443/qm/process/project-areas/_9tR-gOatEeW4_vd64hIoaA/timelines/_9vzuEuatEeW4_vd64hIoaA/iterations/_9vzuE-atEeW4_vd64hIoaA" modified="2016-05-06T11:44:22.515+02:00"/> ... The timeline is assigned to the plan, but when opening it on the Web-UI, the following warning is displayed: "The test plan has an invalid test schedule. The timeline associated to the test plan's team area does not match the timeline of the selected iteration. Either select a valid team area, clear the schedule, or configure a new schedule." --> The selected timeline is valid for the selected team. In the test schedules section, points and planned defects are empty, planned start/end date and duration is displayed as expected. If I now manually clear the iteration and add the same iteration again via the web-ui, points and planned defects gets filled with "0" and the message disappears. Now, removing the schedule again manually and updating the testplan the same way again via REST works without any warning afterwards. It only seems to happen when a team area is assigned. The XML before and after setting schedule manually looks completely the same. Am I doing something wrong or might this be a bug in the REST-API? Thank you |
2 answers
Have a look at UI looks different when link a test plan to a test phase by using REST API (84330) comment 23.
|
Hi.
Thanks for your response. I think this unfortunately still doesn't really answer my question. So maybe summarized: I want to set the iteration of a parent testplan to all its children: 1. fetch master testplan via REST 2. Copy <parentIteration> section from xml 2b. also tried to copy and paste the <estimation> section 3. fetch child testplan 4. Paste <parentIteration> into child's xml 5. Update the children via REST --> Unfortunately I cannot upload images: "The test plan has an invald test schedule. The timeline associated to the test plans team area does not match the timeline of the selected iteration...." (which is not true) Planned Defects and Points fields are empty 6. Open in web ui 7. Clear Test schedule 8 Manually select the same iteration by clicking browse 9 Save --> iteration is set without warnings. Points and planned defects fields get filled with "0" The XML before and after setting the iteration manually looks exactly the same. Any further ideas? ------------ 6.0.1 Global Config disabled "Enable team areas and support for multiple timelines." Enabled ---------- Thanks in advance Comments I cannot reproduce this symptom in RQM 6.0.3 S3 (latest development sprint). Did you remove the modified attribute from the parentIteration element? Is the child test plan in a different team area that has a different timeline? If not, please open a RQM defect with all the details.
Julian Hemm
commented May 31 '16, 2:12 a.m.
Hi Paul,
Julian, I think it's time to open a RQM defect with all the details and a link to this post. <o:p> </o:p> |
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.
Comments
When you do it in the Web GUI, it can do multiple things for you. With REST API, you may have to use multiple requests to achieve the same thing, and you need to find out what other requests are required.
Unfortunately I cannot observe any additional requests using Firebug that I could do using REST API. Any ideas/hints what might be needed in addition? Thanks.