<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636681#M208460</link>
    <description>&lt;P&gt;Your provided script was helpful. I have modified code as per my requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if ((parent.state == -3 || parent.state == -2 || parent.state == -1 || parent.state == 0) &amp;amp;&amp;amp; parent.active == true &amp;amp;&amp;amp; !gs.hasRole('change_manager')) {&lt;BR /&gt; answer = true;&lt;BR /&gt;} else {&lt;BR /&gt; answer = false;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 23:47:39 GMT</pubDate>
    <dc:creator>Venkat97</dc:creator>
    <dc:date>2021-02-11T23:47:39Z</dc:date>
    <item>
      <title>How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636677#M208456</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request table should be visible only who having change manager role.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 00:56:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636677#M208456</guid>
      <dc:creator>Venkat97</dc:creator>
      <dc:date>2021-02-05T00:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636678#M208457</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How are you? Have you attempted to look in to this yourself?&lt;/P&gt;
&lt;P&gt;What have you found or not found thus far?&lt;/P&gt;
&lt;P&gt;Would love to hear a bit more, like, what's your thoughts on where to start, where have you looked already, etc?&lt;/P&gt;
&lt;P&gt;To get you started, you can do something like this:&lt;/P&gt;
&lt;P&gt;Navigate to your change request form, scroll to Affected CIs related list, right-click any column header and choose Configure &amp;gt; List Control:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37294i8F83D3901489FC97/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then add the "Omit edit condition" field to the form because by default I don't think it's there:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37298i4400DD6F4838F10C/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then add the Omit edit condition filed to the form. Once that's done you can use script like this:&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;if (parent.state == -4 &amp;amp;&amp;amp; parent.active == true &amp;amp;&amp;amp; gs.hasRole('change_manager')) {
    answer = false;
} else {
    answer = true;
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37295i977E9B1EF74B4221/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark reply as Helpful/Correct, if applicable. Thanks!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 01:08:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636678#M208457</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2021-02-05T01:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636679#M208458</link>
      <description>&lt;P&gt;Hello &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="169ecae9dbd41fc09c9ffb651f961975"&gt;@Allen A&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response.&amp;nbsp; I have added script in "Omit edit condition" field as you suggested. After applied the code, Non-change manager users are not able to see 'Edit' button in Affected CI tab of change form. It working as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the concern is who having 'change_manager' role users also not able to see 'Edit' button under affected CI tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My requirement is Change manager users should ability to see 'Edit' button under affected CI tab for change records having state from Assess to Review.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Non-Change managers should not ability to see 'Edit' button under affected CI tab for change records having state from Assess to Review.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate for you help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 01:18:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636679#M208458</guid>
      <dc:creator>Venkat97</dc:creator>
      <dc:date>2021-02-06T01:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636680#M208459</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;When you say: &lt;EM&gt;"But the concern is who having 'change_manager' role users also not able to see 'Edit' button under affected CI tab."&amp;nbsp;&lt;/EM&gt;That was not true with the last script I provided. The last script provided, change_manager role users COULD see the Edit button, but it was only for the Assess state.&lt;/P&gt;
&lt;P&gt;Anyways, with this new script, change_manager role users CAN see the Edit button within a Change Request for Change Requests with a state of: Assess, Authorize, Scheduled, and Implement (so up to and not including Review). So all during Assess they'll see Edit, all during Authorize they'll see Edit, all during Scheduled they'll see Edit, and all during Implement they'll see Edit. Once it gets to Reviewed, they'll not see Edit anymore.&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;if ((parent.state == -4 || parent.state == -3 || parent.state == -2 || parent.state == -1) &amp;amp;&amp;amp; parent.active == true &amp;amp;&amp;amp; gs.hasRole('change_manager')) {
    answer = false;
} else {
    answer = true;
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37297iCE80C2D46FC970AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37301i8040F501E0BD7501/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37296iE6533C4E5DBC6CB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37303i5E19DEB0977509DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/37300i5768901409E45C49/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Please mark reply as Helpful/Correct, if applicable. Thanks!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 01:27:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636680#M208459</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2021-02-06T01:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636681#M208460</link>
      <description>&lt;P&gt;Your provided script was helpful. I have modified code as per my requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;if ((parent.state == -3 || parent.state == -2 || parent.state == -1 || parent.state == 0) &amp;amp;&amp;amp; parent.active == true &amp;amp;&amp;amp; !gs.hasRole('change_manager')) {&lt;BR /&gt; answer = true;&lt;BR /&gt;} else {&lt;BR /&gt; answer = false;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 23:47:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636681#M208460</guid>
      <dc:creator>Venkat97</dc:creator>
      <dc:date>2021-02-11T23:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make visible 'Edit' Button in related list of Affected CI tab from 'Assess' to 'Review' state in change request</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636682#M208461</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The script I provided, the point was, to give you an example. We want YOU to learn. So what I've done was more than enough to get you where you needed to go. As is evident by you being able to take it from me giving you 95% of what you needed and make 2 edits...&lt;/P&gt;
&lt;P&gt;Also, you said that the edit button should be visible for "change_manager" role, but instead you remove it from them, so only people who don't have the change_manager role would see the Edit button during those change request states.&lt;/P&gt;
&lt;P&gt;Anyways, take care, but clearer questions help us all.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;It's all about the responses helping guide you correctly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 23:55:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-make-visible-edit-button-in-related-list-of-affected-ci/m-p/636682#M208461</guid>
      <dc:creator>Allen Andreas</dc:creator>
      <dc:date>2021-02-11T23:55:40Z</dc:date>
    </item>
  </channel>
</rss>

