Book a Demo

Author Topic: Requirement Types  (Read 3851 times)

AlexDG

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Requirement Types
« on: July 25, 2008, 06:53:02 am »
Hi,

Searched through the object model but can't seem to find out how to add requirement types programmatically. Don't want to resort to messing with the DB. Is there a way to do it?

Thanks in advance.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Requirement Types
« Reply #1 on: July 25, 2008, 07:08:33 am »
No problem Alex,

You need to have a project open to do this, since these are stored on a per project basis.

From the main menu open the Settings | General Types dialog and click the Requirements tab. You should be fine from there.

HTH, David

PS: To migrate these to other projects you can Export and Import the appropriate category of reference data. You can also import the data into your 'seed' project if you want all projects based on that seed to inherit these types.

[edit]I just realized that you're asking about automation, so the answer above won't help. I'll leave it up though, in case someone needs to know how to do this by hand.

There is no direct way to export and import reference data in EA, at least not yet. You would have to "mess with the DB" to do this; the table you want is t_requiretypes, and the fields are pretty obvious. For reference, you can delete the 'stock' types without hurting EA. Internal and External requirements are not 'types' in the same sense and EA handles them without reference to the data elements.[/edit]
« Last Edit: July 25, 2008, 07:14:30 am by Midnight »
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Requirement Types
« Reply #2 on: July 25, 2008, 08:42:33 am »
I think you can get the Requirement types by calling Repository.GetReferenceList(Requirement), but even with that I can't see any way to add to it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Requirement Types
« Reply #3 on: July 25, 2008, 09:11:00 am »
Quote
I think you can get the Requirement types by calling Repository.GetReferenceList(Requirement), but even with that I can't see any way to add to it.
And therein lies half the problem.

The other half is that even if you do solve the problem there appears to be no equivalent to reference data export and import. Synchronizing projects can become touch and go.
No, you can't have it!