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

Make HTTP calls through Calculated Values [RTC 6.0.1]

 Hello Everyone,

We have hosted a XML file in a WAS server say : https://servername/extension/costCollector.xml
Now we need to access this data through Script Based Calculated Values. 

According to https://jazz.net/wiki/bin/view/Main/DataSourceValueSetProviders there is a possibility to make HTTP calls and get value sets for enumeration.

if we see the structure of valueSet function:

 getFilteredValueSet: function(attributeId, workItem, context, filter) {
        //...
    }
	
And now comparing it with the function of getValue of Script based calculated value
	
 getValue: function(attribute, workItem, configuration) { //.. }
	
we see that the context parameter is missing which is used to get the data connector.

is there any way of making HTTP Requests through Calculated values as the same way we make HTTP requests in FilteredValueSet?

Thanks.

1 vote


Accepted answer

Permanent link
I think I have tried that and I was not able to access the HTTP filtered value set from a calculated value.
Jorge describes the API: https://jorgediazblog.wordpress.com/2012/06/27/work-item-customization-httpconector-and-oauth-in-rtc-4-0-for-oslc/ but I got that to work only in value sets as far as I can remember.
Abhishek Kumar selected this answer as the correct answer

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,935
× 152
× 34

Question asked: May 27 '16, 6:47 a.m.

Question was seen: 3,086 times

Last updated: May 30 '16, 3:04 a.m.

Confirmation Cancel Confirm