how to make some fields read only and some fields editable based on assignment group on SC Task

Sateesh11
Tera Contributor

We have created one catalog item named " Off-boarding" in our dev environment, whenever a request is ordered 7 catalog tasks are created automatically and assigned to different assignment groups as configured in the workflow.
Our requirement is variables should be editable to assigned groups only and read-only to other groups.

For example, assume the scenario below:
------------
The Lab Operations-Off Boarding group members can only edit the 'ELN' variable and the remaining variables should be read only for this group.
ComplianceWire-Off Boarding group members can only edit the Compliance Wire variable value and the remaining variables should be read-only for this.

6 REPLIES 6

Jon23
Mega Sage

Hi @Sateesh11 ,

One thought is to create a new hidden group ref field.

For each catalog task assigned group, update the new variable field with the same value.  You can then use a simple catalog UI policy to make fields read only/editable.

Sateesh11
Tera Contributor

Hi Jon,

As you suggested, created new hidden group filed but unable to update the assignment group value into newly created field.

Can you please help me on this.

Hi Sateesh,

You can create a Flow action to update a catalog variable.  Take a look at these posts on how to:

https://www.servicenow.com/community/now-platform-forum/how-can-i-update-a-catalog-variable-in-flow-...

https://www.servicenow.com/community/now-platform-articles/set-value-of-a-catalog-variable-at-flow-d...

 

Are you opening all 7 tasks in parallel or waiting for one to complete before opening the next?

Sateesh9
Tera Contributor

Passed the task group value using display business rule to scratchpad and access the scratchpad to know the group value in onload client script.

it worked for me .

Thank you!