Hi can anyone give me some requirements of Business rules so that I can practice my scripting part ?

Rishabh Sharma
Mega Contributor

Hi can anyone give me some requirements of Business rules so that I can practice my scripting part ?

7 REPLIES 7

AnirudhKumar
Mega Sage

Ok, Try this...

Whenever incident tasks are created for an incident, the inc task short description has to be copied over to the Description(one below other) of the Incident record.

When first task is created, Incident Description has to be :

Task 1 Description

 

When second task is created, Incident Description has to be :

Task 1 Description

Task 2 Description

 

When third task is created, Incident Description has to be :

Task 1 Description

Task 2 Description

Task 3 Description

 

And so on...

Prasad Dhumal
Mega Sage
To Improve scripting, try to solve more scenarios There are multiple scenario's , you can refer below examples When user opens the existing incident and there is the parent incident of the same incident then there should be a message at the top “this incident is child xxxx incident” and when user click on parent incident number, it should open the same incident in new tab. If the short description contain infra keyword in the beginning then category should add a new choice “INFRA” and set it to the same. There is a field on a form you applied client script to make that field invisible then apply UI policy to make it visible? What will be the output ? Create a business rule to Create a custom table(cust_incident) with two fields (incident_num, state), and whenever incident created, copy newly created incident associated incident_num, state values into the new custom table. Create a business rule, Whenever a record deleted from 'cust_incident' table, delete corrresponding incident record from 'incident' table Before: If the Incident state is new then user should not able to delete that incident. Before: User should not be able to create new incident if the existing incident is there with same Short Description with Same Caller. After: When Problem resolves, then its related incidents should also resolve and copy the cause notes. Display: While Creating New Child Incident, Copy Fields From Parent Incident if there are multiple catalog items with same workflow but every time description field is getting changed so in run scrip activity how can we set it dynamically Write a script on incident, so when user select "caller" it will throw alert as “Mobile no of user is XXXXX”.when click on "ok", mobile no. get populated in short description of incident form OnChange Catalog Client Script if FirstName is Prasad and LastName is Dhumal, Email field should auto populate PDhumal@Gmail.com (First Letter of First Name + Lastname + @Gmail.com) Calculate the number and return as duration : User will be entering the number on the form for example lets say 250, based on the input it should convert this number into a time duration as 4 hours and 10 minutes.

Prasad Dhumal
Mega Sage
  • To Improve scripting, try to solve more scenarios 
  • There are multiple scenario's , you can refer below examples
  • When user opens the existing incident and there is the parent incident of the same incident then there should be a message at the top “this incident is child xxxx incident” and when user click on parent incident number, it should open the same incident in new tab.
  • Create a business rule to Create a custom table(cust_incident) with two fields (incident_num, state), and whenever incident created, copy newly created incident associated incident_num, state values into the new custom table.
  • Create a business rule, Whenever a record deleted from 'cust_incident' table, delete corrresponding incident record from 'incident' table
  • Before: If the Incident state is new then user should not able to delete that incident.
  • Before: User should not be able to create new incident if the existing incident is there with same Short Description with Same Caller.
  • After: When Problem resolves, then its related incidents should also resolve and copy the cause notes.
  • Display: While Creating New Child Incident, Copy Fields From Parent Incident
  • if there are multiple catalog items with same workflow but every time description field is getting changed so in run scrip
  • activity how can we set it dynamically
  • Write a script on incident, so when user select "caller" it will throw alert as “Mobile no of user is XXXXX”.when click on "ok", mobile no. get populated in short description of incident form
  • Calculate the number and return as duration : User will be entering the number on the form for example lets say 250,
  • based on the input it should convert this number into a time duration as 4 hours and 10 minutes.

Thank you for posting multiple requirements