creating and displaying a mandatory and editable variable only on the 1st task of a catalog item

Yash38
Kilo Guru

I'm having a requirement where we need to create and display one extra variable only on the 1st task of a RITM for a catalog item.

that variable should be mandatory, should copy the name of person from requested for field and editable only by the group to which this 1st task is assigned to so that they can change the person's name in this variable if they want.

 

this variable should not be present on the catalog form which end user will be filling on service portal but should be displayed on the 1st task of the RITM generated.

How can we achieve this.

 

Thank in advance.

1 ACCEPTED SOLUTION

kamal_s
ServiceNow Employee
ServiceNow Employee

Hi Yash,

While creating the task through workflow, you can select the variables which should be visible at the task level (Make sure the variable is not set to Global in variable configuration).

 

Making it mandatory/editable can be done using the Catalog Client Script  either through creating a client callable script include or by giving a specific role to the group and using g_user.hasRoleExactly('your_new_role') in the script itself.

View solution in original post

4 REPLIES 4

Ct111
Giga Sage

Are you using workflow or flow designer for this?

I'm using Workflow.

kamal_s
ServiceNow Employee
ServiceNow Employee

Hi Yash,

While creating the task through workflow, you can select the variables which should be visible at the task level (Make sure the variable is not set to Global in variable configuration).

 

Making it mandatory/editable can be done using the Catalog Client Script  either through creating a client callable script include or by giving a specific role to the group and using g_user.hasRoleExactly('your_new_role') in the script itself.

Yash38
Kilo Guru

Thanks, making the variable global solved the issue.