How to get attachment file name of a work item in a customized attribute
How can I get attachment file name of a work item in a customized attribute (calculated value or value set)?
Do we have any way to do?
Background; A customer is using RELM to search RTC artifacts but attachment file name cannot be searched, so he is thinking to put the attachment filename in a customized attribute in a work item.
We are thinking to use HTTP Filtered Value Set Provider as one possible way, it is not successful to run yet.
http://jorgediazblog.wordpress.com/2012/06/27/work-item-customization-httpconector-and-oauth-in-rtc-4-0-for-oslc/
https://jazz.net/wiki/bin/view/Main/DataSourceValueSetProviders#Tutorial_for_providing_a_custom
https://jazz.net/forum/questions/145566/rational-team-concert-use-httpconnectorparameters-on-calculated-value-script-based-custom-attribute
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Introduction
Accepted answer
Hello,
I don't think this can be done: attachment(s) is not an attribute but a link.
You can use RTC Queries to search on attachments names, id:
Eric
2 other answers
Takki,
as far as I am aware you can't access the attachments collection from JavaScript in calculated value providers.
See: https://jazz.net/library/article/1093 Lab 5 especially the limitations.
You might be able to use tricks like the one provided by Jorge to succeed. Another way to proceed might be using Java as described here: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/
JavaScript won't allow you to do this, I am sure.
as far as I am aware you can't access the attachments collection from JavaScript in calculated value providers.
See: https://jazz.net/library/article/1093 Lab 5 especially the limitations.
You might be able to use tricks like the one provided by Jorge to succeed. Another way to proceed might be using Java as described here: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/
JavaScript won't allow you to do this, I am sure.
Comments
1 vote
showing 5 of 6
show 1 more comments