Insert Displayed User Properties
Would it be possible using some customjs to capture the phone number displayed for a single selected user and insert it into a hidden question field? I guess I'm after a method of interrogating the grid view for a selected configuration item and extracting the properties.
Hope that makes sense!
Answers
Can you confirm where you wan the phone number to go?
Geoff
(you're on fire this morning @Geoff_Ross)!
Prompt 1: Pick a User
Prompt 2: Phone number
But prompt 2 will auto fill based on the user picked in Prompt 1? And has some crazy criteria on it so it will never actually show and the whole point of this is so you can then map Prompt 2 to a SR / IR property?
Might be possible but I can think of better ways.
If runbooks are too slow, you can check out PowerShell activity, these usually fire within 5 seconds or so.
Else, what about some code on the Work Item form that just pulls the user phone number from the related CI and populates. Easy in the Portal if you are lucky enough to be building a Portal only environment.
Geoff
I seem to be going through a bit of a 'What else can I do in the portal with js phase'. Next one is seeing if I can prepopulate the query object filter (or hide the filter completely and use a text box, whatever is easier!)
OK, so my conclusion is this: Its maybe possible but its definitely not simple.
I might fine time to have a play one day soon and will post here.
Good luck with the phase - I hope its not just a phase but a new lifestyle!
wrote it works slowly.
The properties are even displaing for user on the offering but thay cant be mapped.