parameterized HTTP Value Set Providers - How to dynamically pass values to the XML data source URL
I wanted to dynamically pass the current work Item Id to the XML data source URL in HTTP Filtered value set.
Currently, I tried with the below mentioned URL to retrieve the XML data:
https://localhost:9443/ccm/oslc/workitems/${com.ibm.team.workitem.attribute.id}
but the id is not fetched and no values are listed in the combo box.
Is there any way to pass the WorkItem Id dynamically.
Thanks in advance
Accepted answer
Comments
Hi Ralph,
${xy.value} | The value of attribute xy . The value is the internal representation of an attribute value, for example, severity.literal.l5 . |
${id.value}
One other answer
The XML data source URL and the row XPath expression can also support the following variables:
Variable | Description |
---|---|
${filter} | The current filter |
${xy.value} | The value of attribute xy . The value is the internal representation of an attribute value, for example, severity.literal.l5 . |
${xy.label} | The label of attribute xy . The label is the display name of the attribute value, for example, Critical . |
Comments
Hello Ralph,
Thanks for the reply.
I have already tried the example shared, and seen the table shared,
I have tried the following queries :
https://localhost:9443/ccm/oslc/workitems/${com.ibm.team.workitem.attribute.id}
https://localhost:9443/ccm/oslc/workitems/${com.ibm.team.workitem.attribute.id.value}
https://localhost:9443/ccm/oslc/workitems/${Id.value} : Here Id is the current workItem Id.
https://localhost:9443/ccm/oslc/workitems/${com.ibm.team.workitem.api.common.WorkItemAttributes.ID}
https://localhost:9443/ccm/oslc/workitems/${com.ibm.team.workitem.api.common.WorkItemAttributes.ID.values}.
but I couldn't hit the URL and get the values in the combo box.
Is there any sample program for the dynamic XML data source URL ?, I have found the example for Xpath. But I need for sample program for
XML data source URL.
Could you please assist me on this.
Thank you