- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2017 06:39 AM
I'm a ServiceNow beginner and I'm wondering if someone could help me with this please.
I have to create a task for a particular team if the user chooses 'yes' for a condition on the form. Any suggestions would be great.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2017 07:58 AM
Hello,
If you want this for Service catalog then You need to do this in Workflow. Create a if block with the below condition and create task if condition is yes.
Here is the sample screenshot:
Script:
answer = ifScript();
function ifScript() {
if (current.variables.field_name == 'true') { // Update the field name with original field name
return 'yes';
}
return 'no';
}
Thanks,
Arindam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 09:52 AM
along the same lines, when i complete out a change request, it generates two tasks, i want to add 2 more but i can not find where to go for this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 10:11 AM
you want to create these two task after completion of change request ? or within workflow. if you want it to create within your workflow then you need to create 2 more task then you need to add 2 more "Create Task" activity in your workflow. either you can drag and drop "Create Task" activity from "core">>"Create Task". or simply copy from existing activity. hope below screenshot will help you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 10:15 AM
my workflow doesnt have a create task activity. it must be generated by a business rule which i cant find

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 10:25 AM
how did you create the task? you did not use task activity in your workflow.?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 10:38 AM
just picked up service now, so new at it. the form existed and the tasks were there, i am trying to add 2 new ones. the workflow does not have anything that says create task