Restore query definition from history
Hi,
From time to time it happens, that we have modified a query on our staging system because of an internal CR, but before we can migrate it to the production server in the meanwhile additional CRs might lead to more changes on the same query. So at the time of migration not only the reviewed changes from the first CR are part of the available query definition, also even not finished modifications might be included. Is there a way to restore former query definition from a specific query (e.g. as of 2013-09-02 10:16)?
I'm aware of those im commands like editquery, createquery etc, but I was not able to re-set a historical query definition. In the query history tab all changes were documented, even the complete modified query definition. But this is not usable because this is not a real query definition statement given there. This might be readable for humans but has the wrong syntax for a correct query definition statement. So if you try to re-use this in a command like "im editquery ....--querydefinition...." you'll have to replace a lot of elements manually. And for more complex queries this becomes real science. Most elements can be fixed by renaming the used field names to their identifier names. But there are also more complex statements which I'm not able to translate back into a working command line statement. (e.g. "Has no ALM_Work Items relationship" ). The Integrity CLI Reference is no real support. For some existing query options there is no information at all. Also this kind of meta language used there makes it not very easy to create correct query definitions.More complex examples would be helpful.
Is there any workaround available to restore an old query definition without rebuilding it manually in the gui?
Thanks &
Kind regards,
Bertram

