Setting Request item and SCTask short descriptions based on a variable field

Moedeb
Tera Guru

I have been trying to set the short descriptions of both the request item and the resulting task based on a variable field, however nothing so far has worked for me.

I have tried adding business rules, but they never seem to fire, I've tried adding a create task as part of a new workflow, but it just hangs at that stage of the workflow.

I've tried: https://community.servicenow.com/community?id=community_question&sys_id=b9fd87addb9cdbc01dcaf3231f96...

Also: https://community.servicenow.com/community?id=community_question&sys_id=e94ffa69db58dbc01dcaf3231f96...

The variable that I'm using is called:

brief_description - (text line)

I would prefer to simply update the task that is automatically created when the workflow runs and not creating a new workflow to create a task as part of it if possible?

Some really detailed instructions/screenshots would also be very much appreciated lol

Thanks in advance

 

11 REPLIES 11

SatheeshKumar
Kilo Sage
Did you tried this in workflow?? I think it is easily done using workflow, Inside task script block task.short_description = current.variables. brief_description; and for your ritm Create a run script Inside that current.short_description = current. variables. brief_description; *make sure the variable, field names are correct. -satheesh

I have tried this yes, but I get "task is not defined" 

This should be used inside the task creation - script block only.

The issue is that I cannot see at all a task creation, however it obviously happens somewhere as a task does get created.

I've also looked in the sub-workflows:

  • Item Designer - Approvals
  • Item Designer - Fulfilment

If you can tell me exactly where then I'd be very grateful thank you