Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to fetch variables (from variable editor) sc task to Story using UI Action

sath
Tera Expert

Hi @Ankur Bawiskar 

We have a UI Action 'Create Story' on sc tasks. When user clicks on it, a new story will be created and sc task will be closed. The new requirement is to capture the variables from sc task (part of variable editor - comes from catalog item) and copy them to story. Please assist.

1 ACCEPTED SOLUTION

@sath 

in client side also it will be difficult to determine.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

@sath 

in server side script you cannot know which variables are shown specifically on sc_task using client script or UI policy

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar I'm not using client script or UI policy here. How do i achieve this requirement of copying the variables from sc task to story?

@sath 

I already informed you cannot determine this in server side.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  Checking to see how we can do this on client side?

@sath 

in client side also it will be difficult to determine.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader