How do I Use the OSLC API to Set the "Filed Against" Attribute?

2 answers

Hi Nate,
I had pretty much the same issue you describe: filedAgainst is mandatory in most process templates, however the Jazz REST API does not seem to provide a way to discover the mappings as you normally would with OSLC. In the end, we used the following workaround: Creating a test work item, filing it against different categories and creating our own, offline mapping. This has worked quite well, although it cannot handle new values without intervention.
If you find a better way, I'd very interested to hear about it.
Kind regards,
Oliver
I had pretty much the same issue you describe: filedAgainst is mandatory in most process templates, however the Jazz REST API does not seem to provide a way to discover the mappings as you normally would with OSLC. In the end, we used the following workaround: Creating a test work item, filing it against different categories and creating our own, offline mapping. This has worked quite well, although it cannot handle new values without intervention.
If you find a better way, I'd very interested to hear about it.
Kind regards,
Oliver

I believe I have discovered a solution for this. It might not be the optimal solution, but it works.
If you fetch the resourceShape information for the work item that you are trying to create, it lists all of the allowable filedAgainst enumerations (i.e., the unique URLs for them). You can follow the URLs for these enumerations to get information about them (like their names).
To fetch the resourceShape, refer to this post: