Murugavel
New Member.
1954 views

Deleting a Changepackage

Jump to solution

Hi,

How to delete a change package? Checked-in files with wrong CR so have to delete those wrong change package. There is no option to delete it via CPC 14.

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Deleting a Changepackage

Jump to solution

Through the command line, you can get the values of any fields, including viewmemberid, by running a select query.

e.g. select * from changapackage -p "..."

through the cpc, go to the change perspective, in the left pane, right mouse click context menu on the change package property fields, and add the viewmemberid field to the columns.

the point is, the where clause of a select, update or delete statement is a generalized query generation tool.

viewmemberid is one way of identifying an artifact instance. (it does provide you with a unique instance)

but you could equally well describe other properties in the where clause, including transactionid, commit time, etc...

please review the command line wiki pages for the general syntax of 'where' expressions

take care

anil

0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

RE: Deleting a Changepackage

Jump to solution

We do not provide any mechanism to delete change packages through the Cross Platform Client.

What you really want to do, i believe, is to disable the changes associated with the 'wrong' change package

which is supported by the CPC.

0 Likes
Murugavel
New Member.

RE: Deleting a Changepackage

Jump to solution

Thank you Anil. Is it possible to do it with command line?  how to disable the wrong change package?

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Deleting a Changepackage

Jump to solution

you can remove a change package using the command line.

you need to use the delete command, whose syntax is similar to that of the update command, e.g.

delete changepackage where viewmemberid = 12345 -p "user:password@host:port/projectname/viewname"

we do not support the mechanism for disabling individual changes from within the command line.

0 Likes
Murugavel
New Member.

RE: Deleting a Changepackage

Jump to solution

delete changepackage where viewmemberid = 12345 -p

Seems like this will delete all the change package for the CR. I want to delete only few change package created against a CR not all.

How to disable it through CPC?

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Deleting a Changepackage

Jump to solution

>>Seems like this will delete all the change package for the CR.

i am not sure how you arrived at this particular conclusion.

The syntax specified deletes the single change package whose viewmemberid is 12345.

to disable changes through the cross platform client, select the change perspective, pick the change package of interest from the list of change packages in the left pane, pick the changes viewer, select the change(s) you want to disable, and turn OFF 'Include in Replay'

0 Likes
Murugavel
New Member.

RE: Deleting a Changepackage

Jump to solution

Sorry Anil, I have not understood your syntax properly. How do I find the viewmemberid of a Changepackage?

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Deleting a Changepackage

Jump to solution

Through the command line, you can get the values of any fields, including viewmemberid, by running a select query.

e.g. select * from changapackage -p "..."

through the cpc, go to the change perspective, in the left pane, right mouse click context menu on the change package property fields, and add the viewmemberid field to the columns.

the point is, the where clause of a select, update or delete statement is a generalized query generation tool.

viewmemberid is one way of identifying an artifact instance. (it does provide you with a unique instance)

but you could equally well describe other properties in the where clause, including transactionid, commit time, etc...

please review the command line wiki pages for the general syntax of 'where' expressions

take care

anil

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.