Book a Demo

Author Topic: Use script to transfer traceability links from 1 requirement to another  (Read 4685 times)

NickBeaumont

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
I am importing new requirements into EA (V13) that have a different numbering structure from those already existing in the database.

I must write a script (VBScript or JScript) that:
- analyses the current traceability,
- compares the old and new requirements from an external file,
- and then transfer the traceability from the old requirements onto the new requirements.

The traceability is between a requirement and a EA constraint.

P.S. I'm new to Scripting so I need an idiots guide.
However I know EA very well.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Use script to transfer traceability links from 1 requirement to another
« Reply #1 on: August 24, 2018, 01:46:58 am »
AFAIK my Scripting book is the only dummies guide.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Use script to transfer traceability links from 1 requirement to another
« Reply #2 on: August 27, 2018, 04:57:18 am »
Hi,

I can recommend qwerty's book.

Additional approaches:
- EA ships with a lot of example scripts (VB, JScript, JavaScript)
- EA Automation interface (Java, C#, & more)
- Add-In, all languages which support the Microsoft COM interface

My personal approach is C# and Add-Ins for more complex situations because of type checking and the possibility to handle complex solutions with a user-friendly GUI.

Every approach has its pros and cons.

Best regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Use script to transfer traceability links from 1 requirement to another
« Reply #3 on: August 27, 2018, 05:43:35 pm »
If you need more samples check my github repo: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library

Geert