- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 12:34 AM
Hi Team,
We have a requirement regarding checkbox approval:
we developed one catalog item and the catalog have 5 checkbox variables. and for each checkbox different users approval are there like below:
1. checkbox1 - A user approval
2. checkbox2 - B user approval
3. checkbox3 - C & D users approvals
4. checkbox4 - E & F users approvals
my requirement is :
if an end user select checkbox1 and chekbox3 in that case "A user" must approve and "C & D users" any one approval is enough no need to wait for both approvals.
ANY help would really appreciated...
thanks in advance..
Note: We used workflow and currently the ticket is waiting for all the user approvals [A , C , D]
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 04:09 AM
After both the Approved activity before set Value you have to use join acitvity
like both the ends of approved will connect to join activity and then it will set the value to approved.
-------------Approval ------------ Join -------SetValue
------------Approval --------------
The join activity wait for the completion of all the paths.
Mark helpful and correct if it helps.
Thansk,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2023 07:12 AM
Hi @Ankur Bawiskar ,
I have used the same script and my use case is also same but on selecting of any check box, approval is going to all the users I have mentioned in script based on script condition.
var answer = [];
if (current.variables.subsea7_hsseq = true){
answer.push("4e6f97291b3ce01019c25fc4464bcbd7");
}
if (current.variables.subsea7_sales = true) {
answer.push("5100a7291b7860107e64a86fe54bcbfc");
}
if (current.variables.subsea7_finance = true) {
answer.push("bbaf53a91b3ce01019c25fc4464bcb07");
}
if (current.variables.subsea7_hr = true) {
answer.push("adaf1b651b7860107e64a86fe54bcbe0"); //Anika Brannen
}
if (current.variables.subsea7_field = true) {
answer.push("8a24cb19db64ac10cb6a16f35b96191b"); //Stuart Holley
}
if (current.variables.subsea7_project = true) {
answer.push("56318759dbe0ac10cb6a16f35b96195a");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 12:50 AM
Hi A,
You have to use different approval activity in each checkbox cases. Since you need any one of approval from C&D group so theses two group should be present in one approval activity and user A should be in one activity block.
You can check the value of checkbox using if activity:
Workflow transition:
Begin -- If Activity (Checkbox 1 is selected ) -- Approval activity (user A )
----------IF Activity(Checkbox 3 is selected) -- Approval Activity ( Gropu C & D)
In the approval activity for (group c & d) you can select the wait for to An Approval from any group
this will move forward if any one user approve from any of the both the groups
Screenshot:
Mark helpful and correct if it helps.
Thanks,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 01:53 AM
Hi CB,
Thanks for reply..
we tried what @ankur suggested, could you please help us on the below requirement
If an end user select all 4 checkbox's, so in that time we want
checkbox1 user approval
checkbox2 user approval
checbox3 user approval [any one approval]
and
checbox4 user approval [any one approval]
Note: All the approvals must trigger at a time.
Thanks in advance....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 02:22 AM
Hi Ar,
After begin activtity you have to mulitple if activity parallel followed by approval activity.
As I suggested Earlier:
Begin ------------ If (Checkbox 1 is checked) ---- Approval activty ----
------------ If (Checkbox 2 is checked) ---- Approval activty -----
------------ If (Checkbox 3 is checked) ---- Approval activty ---
like similar way you have to construct.
after begin there will be four paths of if activity and then to approval
activity
See my above comment and let me know if you need more detaisl.
Mark helpful and correct if it help.s
Thanks,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 04:00 AM
Hi CB,
thanks for the reply..
I tried what you suggested above.
just for testing i created 2 if activities , and if checkbox1 user apporved the ticket then the ticket is not waiting for the checkbox2 user approval ??
Note: If in case if i use the wait for condition activity after the both approvals also RITM ticket fields are not changing.