ServiceNow release notes automation

mandgm1
Tera Contributor

Dear all,

 

We are using customized form of ServiceNow. We have releases twice in a month and post the release we manually export the release notes field values mentioned in the feature and publish it in a common location. 

 

Instead I would like to know if we can automate this?

Plan is to post the deployment execute job to automate release note generation and  pop up a banner message in the home page which will have URL mentioned to the releases notes location.

 

By this way we can increase the visibility of the same.

 

Is it possible?

1 ACCEPTED SOLUTION

Riya Verma
Kilo Sage
Kilo Sage

Hi @mandgm1 ,

 

Hope you are doing great.

 

To achieve it:

  1. Create a script that runs as part of the release deployment processto extract the release notes from the customized form and store them in a designated location. You can use server-side scripting,  to achieve this functionality.

 

// Retrieve the release notes from the customized form
var releaseNotes = current.getValue('release_notes');

// Generate a unique file name or path for each release
var fileName = 'release_notes_' + current.getValue('release_number') + '.txt';

// Store the release notes in a common location, such as a shared network drive or a document repository
var fileSys = new GlideSysAttachment();
fileSys.write('common_location', fileName, releaseNotes);
​

 

  • Once the release notes are stored, you can create a banner message that will be displayed on the home page after each deployment. This banner message will include a URL linking to the location where the release notes are published.

To create a baner in step2, :

  1. create UI macro.

 

<div class="banner">
  <a href="URL_TO_RELEASE_NOTES" target="_blank">
    New release notes are available. Click here to view.
  </a>
</div>
​

 

  •  Edit the page and add a UI Macro widget.

  •  Configure the widget to use the "ReleaseNotesBanner" UI Macro you created earlier.

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

View solution in original post

1 REPLY 1

Riya Verma
Kilo Sage
Kilo Sage

Hi @mandgm1 ,

 

Hope you are doing great.

 

To achieve it:

  1. Create a script that runs as part of the release deployment processto extract the release notes from the customized form and store them in a designated location. You can use server-side scripting,  to achieve this functionality.

 

// Retrieve the release notes from the customized form
var releaseNotes = current.getValue('release_notes');

// Generate a unique file name or path for each release
var fileName = 'release_notes_' + current.getValue('release_number') + '.txt';

// Store the release notes in a common location, such as a shared network drive or a document repository
var fileSys = new GlideSysAttachment();
fileSys.write('common_location', fileName, releaseNotes);
​

 

  • Once the release notes are stored, you can create a banner message that will be displayed on the home page after each deployment. This banner message will include a URL linking to the location where the release notes are published.

To create a baner in step2, :

  1. create UI macro.

 

<div class="banner">
  <a href="URL_TO_RELEASE_NOTES" target="_blank">
    New release notes are available. Click here to view.
  </a>
</div>
​

 

  •  Edit the page and add a UI Macro widget.

  •  Configure the widget to use the "ReleaseNotesBanner" UI Macro you created earlier.

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma