Fill in Work Item without Template!?
Greetings,
2 answers
For all I know this could be done using JavaScript and the OSLC CM API. You could, for example, create an open social gadget and that could display a button which allows to create a work item (using the creation factory for the work item type) and fills out the values as desired.
I think I have a suggestion that might be possible. I had never considered it before, but it occurs to me now that it might be worth investigating. In fact, I'm pretty sure it would work actually.
Comments
Nate, you're a genius as always. I didn't think about customizing the javascript via the theme. I did confirm that the work item customization JavaScripts do NOT have visibility to the DOM, so I could not inspect the URL from there... but loading a JavaScript via the theme sounds like an approach I could get working.
Oh man, this is getting complicated fast. The text boxes and drop-downs are dojo widgets. The div ids are 2-3 levels up from the actual text box, and are (naturally) dynamically named. For example, the Summary box in 5.0.2 might be one level down from div with id "...RichTextEditorView_0", or in 6.0.4 it could be two levels down from "...RichTextEditorView_3". It is looking likely that I will hope that the RFE Community will see this as an easy win, and implement it for us.
Ah, so it's complicated but perhaps only "easy" in a few rare cases (like direct text-entry fields then) eh?
I have never done this, but I believe you would have to use REST/OSLC to get the work item factory for the type. You would also have to use OSLC to get the attribute values you need to set e.g. category and what other required attributes are needed.