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

Is it possible to lock/unlock requirements via the REST API in DNG?

Is it possible to lock a requirement, or set of requirements (given their IDs or itemIds) in Doors NG 5.0.x via the REST/OSLC API?

The client wishes to lock a set of requirements (within the traceability tree) before generating a RPE report. They want to lock these requirements to ensure that no changes are made to the requirement hierarchy while the report is being generated.

Thanks,
Sudheer

1 vote



2 answers

Permanent link
While it is possible to do it while HTTP calls, I doubt that the API is published. And strictly speaking, such calls are not OSLC since OSLC RM 2.0 specification says nothing about "locks". The RM reportable REST API does not address locks either.

0 votes

Comments

Hi Donald,

How can I find the HTTP calls to lock/unlock requirements?

Alternatively, is there another way to ensure that requirements are not modified while executing a report, or at the very least being able to flag them (e.g. by reporting on suspicion status for the requirement)?

Regards,
Sudheer

It's HTTP calls, so if you do some HTTP tracing, you will find it out. As for "locking requirements for reports", I think we are looking at the feature of reports based on baselines, but I cannot recall whether such feature exists.


Permanent link
There is no public API for locking and unlocking resources.
If you want to be sure that the data did not change while you are generating a report then reporting on baselined data is probably the way forward.  Alternatively you could always read the etag for each resource (available on a GET of the resource via the public API) and compare that before and after the report is generated

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,939
× 479

Question asked: Apr 30 '15, 5:51 a.m.

Question was seen: 4,666 times

Last updated: May 15 '15, 5:08 a.m.

Confirmation Cancel Confirm