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

How to detect duplicate artifacts in DNG

Does anyone know of a method or utility that enables a user to identify duplicate artifacts (artifacts with identical content) within a DNG project area?


Ideas that I had:
  1. Built-in DNG functionality of which I am not aware
  2. A creative SPARQL query in JRS
  3. A JavaScript OpenSocial gadget
  4. Other?
As a last resort, I would use JRS to export all artifacts in the project area to Excel and then identify duplicates there.

0 votes


Accepted answer

Permanent link

I have a couple of thoughts ...

Let's assume "identical" means "same title and content and attributes but different ID number." I suggest this because ...
1. If you import multiple times, for example from a CSV or Excel file, you could experience this if you don't select update or replace.
2. If you have identical ID numbers in the same project area (or, I think, on the same server) then it's a bug (I don't think that's possible except in the special case of a configuration-enabled project where you have reorganized artifacts into different components and have old and new versions of the same artifact in different components).

If your artifact titles tend to be relatively long and unique (or the content tends to be relatively short and unique), then a JRS report might be the best way to find them (create report, sort by title then description and scan for duplicates).

If not, then it may be most productive to create a DNG extension that reads requirements, creates a hash of the relevant fields, then stores the hash and artifact ID somewhere (and maybe stores more info for convenience).  Then you could find identical hashes.

Bob 3 selected this answer as the correct answer

0 votes

Comments

 Thanks for your response, Daniel!

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
× 12,019

Question asked: Aug 09 '17, 5:53 p.m.

Question was seen: 1,581 times

Last updated: Aug 09 '17, 7:23 p.m.

Confirmation Cancel Confirm