- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2020 09:32 PM
Can you share an example how to create 3 catalog tasks in workflow assigned to different assignment group? The logic should be:
Create task 1 - assign to group A
only if task 1 is completed
Create task 2 - assign to group B
only if task 2 is completed
Create task 3 - assign to group C
only if task 3 is completed
Close complete the Request
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2020 10:17 PM
Hello John.
Requirment Fullfilled
You no need to write the code. Just simply create the new Workflow on the "Requested item table".And drag "Catalog Task ACtivity" on form as below
As you see above three catalog task is created asl note from the above workflow,2nd will generate only if 1st is complete.same as 3 will start when 2nd is complete.
YOu can configure the "Catalog task" activity as below
I hope my answer completed your requirement,I tried it on my personal instance.and it is working fine.
Please mark the answer As CORRECT and HELPFUL, if your query is solved.
Regards
Yash Agrawal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2020 09:45 PM
Hi
If you want to query only based on the resolved state or completed then wait for condition should be used.
Slightly modify your code like,
var gr = new GlideRecord('sc_task');
gr.addQuery('request_item',current.sys_id);
gr.query();
gs.log('TASK1 count:'+gr.getRowCount());
while (gr.next()) {
gs.log('TASK1 state:'+gr.state);
if(gr.state != 6)
{
gs.log('TASK1 inside if');
answer = true;
}
}
If it help mark helpful or correct
Thanks and regards
Anil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2020 10:17 PM
Hello John.
Requirment Fullfilled
You no need to write the code. Just simply create the new Workflow on the "Requested item table".And drag "Catalog Task ACtivity" on form as below
As you see above three catalog task is created asl note from the above workflow,2nd will generate only if 1st is complete.same as 3 will start when 2nd is complete.
YOu can configure the "Catalog task" activity as below
I hope my answer completed your requirement,I tried it on my personal instance.and it is working fine.
Please mark the answer As CORRECT and HELPFUL, if your query is solved.
Regards
Yash Agrawal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-04-2020 10:55 AM
Hello John,
I hope from the detailed provided solution,your query is resolved,if so then please mark my answer as CORRECT AND HELPFUL.
REGARDS
YASH K.AGRAWAL

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2020 10:50 PM
Hello John,
You should go with
In "catalog task" core activity related list there is UI action "condition". Using that UI action You can add "Closed Complete" and "Closed Incomplete" condition.
If you want more details about catalog task workflow activity, please go through below link.
Catalog Task workflow activity
Regards,
Harshal.