parameterized HTTP Value Set Providers - How to dynamically pass values to the XML data source URL
Hello All,
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
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
To know the ID's for internal attributes, look into the work item customization in the Web UI. The identifier for the work item number attribute (Id) is "id". To show com.ibm.team.workitem.attribute.id is a defect in the Eclipse client I have reported long time ago. You won't get anything using these ID's from the Eclipse client in the attribute customization and anywhere else.
Comments
One other answer
Reading the product help would be valuable. You can only access attributes of the current work item to modify the URL. You have to conform to the format.
The XML data source URL and the row XPath expression can also support the following variables:
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 . |