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

How do I compare attachment references?

 so in our migrate/copy project from one server to another, we are copying attachments and fixing up all the references. 

one area is the comments documenting the attachment add. 

we are trying to add the link in the comments to the existing attachment. 
so we know we have attachments and we have the id, link and reference to it, but
we are trying to figure out what to compare it to. 

we made another attachment object in memory, then run thru all the link references, and try to compare with 

reference.sameDetailsAs(reference) and referenceExcludingCommentsAs(reference)
neither match.

we tostring() the references and one has extrainfo=null and one has extrainfo= not set. 

any pointers welcomed. 

0 votes


Accepted answer

Permanent link
we ended up using  source_project_attachment_reference.sameDetailsAs(target_project_attachment_reference) and it does work
Geoffrey Clemm selected this answer as the correct answer

1 vote

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
× 10,939
× 369

Question asked: Jan 14 '14, 6:47 p.m.

Question was seen: 3,924 times

Last updated: Mar 03 '14, 11:22 a.m.

Confirmation Cancel Confirm