I am working on a Jira Automation rule and need some help with iterating over a list and creating new issues. Here’s what I’ve done so far:
--------
). The split values are stored in a variable.Objective: I want to iterate over this list and create a new issue for each value in the list. Each new issue should have the same summary as the original issue, and the description should be the value from the list.
Steps I’ve Taken:
Problem: I’m not sure how to iterate over the list and create new issues for each value in the list using Jira Automation. I need to:
Example: Original issue description:
Test Case 1: Valid Inputs
1. Open the login page of Amazon.com
2. Enter a valid username/email address.
3. Enter the corresponding valid password.
4. Click on the login button.
Expected Result: User should be successfully logged in and redirected to the homepage.
--------
Test Case 2: Invalid Password
1. Open the login page of Amazon.com
2. Enter a valid username/email address.
3. Enter an invalid password.
4. Click on the login button.
Expected Result: An error message should be displayed indicating that the password is incorrect.
After splitting, the variable contains:
[
"Test Case 1: Valid Inputs\n1. Open the login page of Amazon.com\n2. Enter a valid username/email address.\n3. Enter the corresponding valid password.\n4. Click on the login button.\nExpected Result: User should be successfully logged in and redirected to the homepage.",
"Test Case 2: Invalid Password\n1. Open the login page of Amazon.com\n2. Enter a valid username/email address.\n3. Enter an invalid password.\n4. Click on the login button.\nExpected Result: An error message should be displayed indicating that the password is incorrect."
]
Desired Outcome: For each value in the list, create a new issue with:
Hi @Nagarjuna Paladugu ,
You can use "For each" > "Advanced branching" like below.
If you find this suggestion helpful, please accept the answer so that others can benefit as well!
Best regards,
Gaurav
Hi @Gaurav Arora ,
This is working, can u also explain me how to replace the \n to a new line
Given: "Test Case 1: Valid Inputs\n1. Open the login page of Amazon.com\n2. Enter a valid username/email address.\n3. Enter the corresponding valid password.\n4. Click on the login button.\nExpected Result: User should be successfully logged in and redirected to the homepage."
Expected:"Test Case 1: Valid Inputs
1. Open the login page of Amazon.com
2. Enter a valid username/email address.
3. Enter the corresponding valid password.
4. Click on the login button.
Expected Result: User should be successfully logged in and redirected
to the homepage."
Best Regards,
Nagarjuna
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.