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

How to create custom id automatically to artifacts in Doors Next Generation

 Hi Team,


 My scenario is that I want to create custom id automatically to artifacts in DNG
 It is possible using extension in DNG ?
 how can I do this?
Thanks In Advance

Regards
Amruta.

0 votes


Accepted answer

Permanent link

Amruta,

when you say "custom id" and automatically, does this mean
a - there is a custom attribute "id" which you want to autofill when the artifact is created?
b - you want an automatically increasing custom ID replacing the system artifact ID?

If a --> easy to create a custom attribute and call it e.g. "custom id". Via JavaScript extensions you could read external sources to find out with what to fill it upon creation ( https://jazz.net/wiki/bin/view/Main/RMExtensionsMain )

If b --> hard to do, since artifacts can be created in parallel. You would have to keep some external counter in e.g. a database and implement some kind of locking etc. You would also have to mask the system ID which does not seem possible or feasible. Not a recommended route at all. Why not use the artifact ID generated by the system?

If a is the answer and it is useful to you please mark this as accepted.

- Arne

Rohini Kumar selected this answer as the correct answer

0 votes

Comments

Thanks for the quick response,

I just hide System id I want to create custom  id in custom attribute automatically when artifact created ,e.g when i will create first artifact then custom id will create as 01
Is it possible?
Is there any way to do it?

I achieved it using section ,but section cannot come in JRS,there is any way to copy section column into another column which will come in JRS?

Section, what's that?

 Section is a feature in DNG,that get automatically numbering e.g 1 ->1.1 for parent child  artifact


2 other answers

Permanent link

Hi Amruta,

There have been similar questions about custom ID's (well, with a custom prefix)
Links:
 Is it possible to add a prefix to the id attribute
 How do we create custom prefixes for requirement id numbers
 How to add prefix in DNG id number

Hope this helps.

2 votes


Permanent link

Can I get JavaScript code for the above "a" req as you mentioned above "If a --> easy to create a custom attribute and call it e.g. "custom id". Via JavaScript extensions you could read external sources to find out with what to fill it upon creation ( https://jazz.net/wiki/bin/view/Main/RMExtensionsMain ) ". Kindly provide.

Thank you,
Regards,
Pavanm

0 votes

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,937
× 116

Question asked: Aug 23 '17, 1:01 a.m.

Question was seen: 5,118 times

Last updated: Mar 16 '21, 1:16 a.m.

Confirmation Cancel Confirm