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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 09, 1:08 p.m.

You can get that data in two ways:
  1. Using the plain Java Client Libraries - see https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/
  2. Using the EWM Reportable REST API - see https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ for examples - there is an example for exactly your use case.

Comments
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

Example: 

workitemUrl =cnfprop.getWebContextUrl() + "/oslc/contexts/_4Fr-kMutEeejP9BlSk46Dw/workitems?"+"oslc.where=dc:modified%3E%22"+modifiedtime+"%22%20and%20rtc_cm:type=%22com.ibm.team.workitem.workitemtype.p6%22&oslc.pageSize=100&oslc.select=dcterms:identifier,dcterms:type,dcterms:title,rtc_cm:state,rtc_ext:com.ibm.team.workitem.attribute.ActualDuration,rtc_ext:com.ibm.team.workitem.attribute.currentplannedenddate";

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.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.