- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 10:45 AM - edited 09-26-2025 10:45 AM
Hi Team,
Could someone please help me with configuring the visibility of the "Create Known Error Article" link based on the following conditions:
For P1/P2 tickets:
The link should be visible only when the ticket is in the Root Cause Analysis (RCA) state.For P3/P4 tickets:
The link should be visible when the ticket is in New, Assess, or Root Cause Analysis states.
I attempted to use the following condition, but I’m unable to structure it correctly to cover all scenarios:
(!(current.primary_known_error_article)) && (!current.duplicate_of) && ( (current.priority == '3' || current.priority == '4') && (current.state == '101' || current.state == '102' || current.state == '103') ) || ( (current.priority == '1' || current.priority ==’2’)&& state == 103
)
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2025 07:42 PM
Hi @PhanitaM ,
you can increase the length of the 'Condition' field. By default its 254.
<your instance url >/sys_dictionary_list.do?sysparm_nostack=true&sysparm_query=elementSTARTSWITHcondition%5EnameSTARTSWITHsys_ui_action&sysparm_first_row=1&sysparm_view=&sysparm_choice_query_raw=&sysparm_list_header_search=true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 10:51 AM - edited 09-26-2025 10:52 AM
Hi @PhanitaM
In here "&& state == 103" you missed "current"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 06:08 PM
Hi @PhanitaM ,
You can modify the UI Action condition field using a script that checks the priority and state of the current record. For P1/P2 tickets, the link should only be visible when the ticket is in the Root Cause Analysis state (state = 103). For P3/P4 tickets, the link should be visible when the ticket is in the New (state = 1), Assess (state = 2), or Root Cause Analysis (state = 103) states.
(!(current.primary_known_error_article)) && (!current.duplicate_of) && (
((current.priority == '3' || current.priority == '4') && (current.state == '1' || current.state == '2' || current.state == '103')) ||
((current.priority == '1' || current.priority == '2') && current.state == '103')
)
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2025 07:56 PM
Hi @PhanitaM ,
Your original logic missed parentheses and had a smart quote. Use this ...\
(!(current.primary_known_error_article) && !current.duplicate_of) &&
(
( (current.priority == '1' || current.priority == '2') && (current.state == '103') ) ||
( (current.priority == '3' || current.priority == '4') && (current.state == '101' || current.state == '102' || current.state == '103') )
)paste this code in condition field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2025 07:30 AM
Hello @TejasSN_LogicX
Condition is exceeding it seems, unable to add it completely in the Condition field. how can i achieve it.
Regards,
