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

If a changeset has been discarded or not

Is it possible through plain client Java API, to know if a changeset in a workitem, is discarded or not? I only have link to the workitem from the changeset.

0 votes



One answer

Permanent link

In the context of a work item "Discarded" does not seem to make sense as a characteristic of a change set. I am also not sure if "Discarded" is any meaningful characteristic.


As far as I know you can discard a change set from a configuration such as a component in a repository workspace or stream. The change set is then removed from this specific configuration (if possible). But the change set is still in the system and might be in the context of another stream. 

So I am not sure that what you try makes sense. Also it is unclear, why you would even try to do this. What is the purpose, the benefit, the reason? 

0 votes

Comments

As Ralph says "discard this change set", it is just something that you can do to a workspace, and has no implication about the presence or absence of that change set in any other workspace/stream in the system.  So it is extremely unlikely that the question "has this change set ever been discarded from any workspace" is of any value.

Also note that "suspended" is a relationship between a user and a change set.  So you could iterate over all users, and ask what change sets they have suspended, but that could be a very expensive operation if you have a lot of users in your system.   So Ralph's last question is important ... why would you want to do this? 

Well we needed to create a report of which changesets linked to one or more workitems have been discarded/suspended. 

However when I informed the Product Owner of the technical infeasibility, he agreed to drop the idea and we stuck with suspended changesets.

Thank you!

Note: Just because a change set is suspended somewhere, does not imply that the change set does not exist in a repository workspace or that it was never delivered to the stream I.e. You can be in a situation where you see 'ChangeSetX' in the Suspended list, but it also could exist in that repository workspace (ex: in the Outgoing folder), or it could also exist in the stream (flow target), or both.

Note that the question "why would you want this report" was not answered ... if the Product Owner got an indication that some user has suspended a particular change set (from one of their workspaces), why would information be of value to the Product Owner?    

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

Question asked: Sep 17 '19, 6:16 a.m.

Question was seen: 2,139 times

Last updated: Oct 23 '19, 1:57 p.m.

Confirmation Cancel Confirm