Business Rule to display info message containing list of CI records - Urgent Help Needed!!

Still Learning
Kilo Sage

Hello,

I have a requirement to create an information popup message that also lists out affected CI records when a release task is created.  The message should state: "The following CIs are impacted by work done in this release". I am familiar with using gs.addInfoMessage for the message, but am really struggling to write the business rule so that the affected CIs are also listed.  Any help is greatly appreciated!!! 

1 ACCEPTED SOLUTION

Also,

change this

ciLst.push(affectedCIs.getValue('ci_item'));

To:

ciLst.push(affectedCIs.ci_item.name.toString());

Best Regards
Aman Kumar

View solution in original post

10 REPLIES 10

Hi Aman, 

This makes so much sense, but for some reason absolutely nothing is happening.  I can see the Affected CIs in the related list, but when adding a new release task, using the after insert business rule, nothing is happening - not even the popup information message (??) I'm not sure why it's not working since it seems like it should ... Do you have any other suggestions?

Should I use a string value for the list of CIs?

I hope you have BR on release task table,

try changing the type to before BR then

Best Regards
Aman Kumar

Also,

change this

ciLst.push(affectedCIs.getValue('ci_item'));

To:

ciLst.push(affectedCIs.ci_item.name.toString());

Best Regards
Aman Kumar

Aman, 

I want to THANK YOU so much for your help with this!!! It actually worked this time with the after insert business rule, by adding the  to.String to the ci item.  The popup message is visible now with the CIs listed.  THANK YOU very much!!! I was really ((REALLY!!!)) struggling with getting this to work, so I honestly can't thank you enough for your help, but I really appreciate it.