It's all about the answers!

Ask a question

How to get the values under Approval section?

Y Deepak (712) | asked Jan 09, 9:14 a.m.
edited Jan 09, 9:21 a.m.


Hi, in ELM 702 version Is there a way to fetch the Approval section details in ELM workitem like the Approver name/ Due date using the java plugins or without plugins?

We are trying to send these data from ELM to other 3rd part system or we are also ok with being able to read these values and create some new attributes custom attributes that can hold these values and using these attributes we will send the data to 3rd party system.

If it is possible is there any link to refer? 

One answer

permanent link
Ralph Schoon (63.2k33646) | answered Jan 09, 12:10 p.m.
edited Jan 09, 1:08 p.m.

You can get that data in two ways:
  1. Using the plain Java Client Libraries - see
  2. Using the EWM Reportable REST API - see for examples - there is an example for exactly your use case.

Y Deepak commented Jan 17, 1:15 a.m.

 1) We are getting other attributes as follows but not approval descriptor and hence due date


workitemUrl =cnfprop.getWebContextUrl() + "/oslc/contexts/_4Fr-kMutEeejP9BlSk46Dw/workitems?"+"oslc.where=dc:modified%3E%22"+modifiedtime+",dcterms:type,dcterms:title,rtc_cm:state,,";

is it possible to get Approvals(Due date, Approver) information by using above query(example) because we want the information through one query only.

If possible how we can add the approval in above query, please share the information.

2) Now, We also have to update the approval details(like approval due date) from our code. how can we update Approval descriptor that has no attribute id mapping(ex:approval duedate) ?

Ralph Schoon commented Jan 17, 3:59 a.m.

You try to get the information using the OSLC API. The approval data is not exposed in the OSLC API. Please carefully read my answer above.

The EWM Reportable REST API is read only. The only option to update the approval data is using the plain Java Client Libraries. Dee my answer above for details.

Your answer

Register or 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.