Dear Community,
I have a customfield which returns the list of services assigned to a issue, I need to loop through those services and post their status to statuspage. I have used Advanced Branching to loop through but it takes the customfield values as single string instead of a list. The customfiled returns this: service 1, service 2, service 3. I tried creating a list like variable before the branch starts like the variable name is loopList and value would be ["service 1", "service 2"...], but still advanced branching takes this as a single string and exits the branch with just one iteration.
I checked this documentation but it did not help. Has anyone come across similar issue or is there any standard format that advanced branching would loop through?
any help would be appreciated. thanks much.
Welcome to the community.
You are showing part of your rule, can you show your complete rule.
Can you also provide:
1. what type of project is this (e.g., company-managed, team-managed, etc.),
2. images that show your complete rule.
3. images showing the details of any relevant actions/conditions/branches.
4. images showing the Audit Log details for the rule execution.
5. Explain where the issue is.
These questions are not for not willing to help, but to have community members understand on how automation works.
And what type of custom field is the field with id 10098?
On the log action for the component, what is the result on just using {{listItem}}
Note: it's best to only use lowercase characters in variable names adn to reply in the thread.
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.
Hi @Shalini Kosuri ,
Welcome to the community!
You can check if this answer fits your requirements:
I experienced the same problem, but I solved it using ScriptRunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
ours is a company managed project. This custom field 10098 is a built in field for JSM its a Assets field.
I have created this manual run automation rule to test a functionality.
I need to get the services for a incident and mark those services as affected on our internal statuspage. As you can see in the second screenshot I am trying to the component/service name and using it to send a web request in next steps in the rule.
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.
So the variable as the correct information.
But the problem is in the API call.
What is the call you are making and what is the error on the call?
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.