Hello,
How can you access the field name of the variable that was created with user input?
Additionally, is there a way to iterate over the array of userInputs to create for each one sub-task, instead of setting up multiple conditions (as in the screenshot)?
Thank you for your answers.
Welcome to the community.
As {{userInputs.sfccdev}} and use an advanced branch, based on the variable should work in theory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That did return the value of true, not the Field Name of the checkbox.
This is what I am trying to retrieve..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It might that the requirement you want to use doens't work.
Can you check if your requirements relates to: AUTO-744
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tomáš Škarpa -- Welcome to the Atlassian Community!
Adding to the suggestions provided by Marc and John...
Let's clarify a bit: what is the type of your user input, "sfccdev: field which you are trying to advanced branch over?
I do not believe there is a multiple-select option field for user inputs. Are you instead trying to split() a text field into values for creating the new user stories?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy
They are multiple check-box inputs. Yes, I was also trying to use them in the advanced branching as {{userInputs.split()}} but I was not succesfull. It gave me an error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information, and...
If you have multiple input fields, of type checkbox, your rule would not use an advanced branch as each field as only two possible values: true and false.
What do you want to happen for the four possible cases?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk @Marc - Devoteam
Seems that advanced branching on the userInputs creates a list?
{muledev=true, sfccdev=true}
this is {{test}} used in the title
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tomáš - Welcome to the Atlassian Community!
What are you trying to do with the field? The value you are entering is a User, correct? If so, then why are you checking if the value of the user is called True?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @John Funk
Happy to be a part of the community. The value I am entering is what the user inputted (checked or unchecked box) to the popup he gets when he manually triggers the automation.
There are a bunch of checkboxes, that return either true or false. The checkboxes have a Label Name, which I am trying to re-use for the purpose of naming the sub-task created based on the checkbox true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, would have been good to know the type of field you were using in the question. See Marc's answer above with the link to the JAC ticket you can vote for and follow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.