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

How to get the values under Approval section?

 

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? 

0 votes



One answer

Permanent link

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.

0 votes

Comments

 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) ?

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 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,964
× 7,519
× 1,349

Question asked: Jan 09 '24, 9:14 a.m.

Question was seen: 813 times

Last updated: Jan 17 '24, 3:59 a.m.

Confirmation Cancel Confirm