URL to create New Incident and prpopulate fields
http://cireson.portal.com/Incident/create?Afftected=User1&title=NewIncident
Is there a way to do this?
Best Answer
-
Geoff_Ross Cireson Consultant O.G.Hi Michael,
The answer is half yes, half no. We do support adding properties via the URL.This is done by appending a query string in the format of "PropertyName=Value" in the 'New' work item URL.
Limitations
There are a few limitations to this that you should be aware of:
- You can not currently set relationship values via this method.
- You must pass enumeration values by ID, not their text value.
- Related objects properties (manual, review activites, etc) can't be set.
Example
For instance, if you wanted a link to open a new change request with the following property values populated:
Title = "New portal Feature"
ScheduledStartDate = "6/14/2017"
Priority = "3A96F7DC-4469-ED8B-48A1-517F7CCF6189" (Medium)
Then the create new change request URL should look like this, when using a template for the baseline properties:
http://www.myscsmportal.com/ChangeRequest/New/bbc23e92-31d0-4c7c-90ff-9eca27936287?title=new portal feature&priority=3A96F7DC-4469-ED8B-48A1-517F7CCF6189&ScheduledStartDate=06/14/2017
Or like this, when using the default template:
http://www.myscsmportal.com/ChangeRequest/New/?title=new portal feature&priority=3A96F7DC-4469-ED8B-48A1-517F7CCF6189&ScheduledStartDate=06/14/2017
However, unfortunately, as you read, this currently doesn't support relationships such as Affected User
Geoff5
Answers
The answer is half yes, half no. We do support adding properties via the URL.
This is done by appending a query string in the format of "PropertyName=Value" in the 'New' work item URL.
Limitations
There are a few limitations to this that you should be aware of:
Example
For instance, if you wanted a link to open a new change request with the following property values populated:
Title = "New portal Feature"
ScheduledStartDate = "6/14/2017"
Priority = "3A96F7DC-4469-ED8B-48A1-517F7CCF6189" (Medium)
Then the create new change request URL should look like this, when using a template for the baseline properties:
http://www.myscsmportal.com/ChangeRequest/New/bbc23e92-31d0-4c7c-90ff-9eca27936287?title=new portal feature&priority=3A96F7DC-4469-ED8B-48A1-517F7CCF6189&ScheduledStartDate=06/14/2017
Or like this, when using the default template:
http://www.myscsmportal.com/ChangeRequest/New/?title=new portal feature&priority=3A96F7DC-4469-ED8B-48A1-517F7CCF6189&ScheduledStartDate=06/14/2017
However, unfortunately, as you read, this currently doesn't support relationships such as Affected User
Geoff
can I do the same with /AffectedUser/Index#/
So I can pre populate the AffectedUser.
The whole idea is to make a landing page from our IT Support Team. So our callcenter can call an URL to open /user/UserRelatedInfoById/{USER GUID}
Here the supporter can see related asses and case history, and then I use the /AffectedUser/Index to create a new case.
I
have attached my idea :)