priority state and etc fields values are not included in the incident XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I exported the incident xml, and found the priority , state, impact and etc values are missing only the id is present.
<state>2</state>
i need to value to be present in the exported xml as mentioned below, how to achieve ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @KushalL,
can you please explain how did you get the Incident's XML?
If you are on a particular Incident, click the three bars and then:
and there it is:
Let me know how did you happen to get a XML without Priority as this field is calculated based on metrics of Urgency and Impact and these can never be empty and thus Priority can neither be empty at any situation...
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
It is expected behavior, take for example below incident record
When you check xml for the record, you can see choice and reference data type fields would have integer value and sys_id value.
For example, take priority field which is a choice data type. In the incident record you can see display value is '5 - Planning' but backend database it would be stored as 5. Similarly, for reference fields, it would show sys ID in the database and you can use getDisplayValue() function to show the display value.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Did you get a chance to review this ?
If my response helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan