${URI_REF} not showing Story number.

Naveen87
Tera Guru

Hey Developers,

 

I have used ${URI_REF} opposite to Number.

Instead of showing STRY number it's showing short description of the story.

I have been using ${URI_REF} & it worked as expected. Not sure what wrong here.

Please suggest.

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Try something like this:

 template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=task.do?sys_id=' + current.sys_id + ' ">' + current.getValue("number") + '</a>');

Embed in your notification

${mail_script:getStoryNumber}

Best Regards
Aman Kumar

View solution in original post

5 REPLIES 5

Aman Kumar S
Kilo Patron

I think your display value for the table is short description, that's why you are getting this.

You might want to change display value to Number, but that will be a global change, rather write up your own email script to show number.

Best Regards
Aman Kumar

Aman Kumar S
Kilo Patron

Try something like this:

 template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=task.do?sys_id=' + current.sys_id + ' ">' + current.getValue("number") + '</a>');

Embed in your notification

${mail_script:getStoryNumber}

Best Regards
Aman Kumar

Hey Aman,

It worked. Thank you so much.

 

Glad that it worked out.

Cheers!

Best Regards
Aman Kumar