How to change issue field for all created issues in current rule?
Asked by Dmytro Komlyk:

![firefox_lzbTdDN0qD.png](https://community.atlassian.com/t5/image/serverpage/image-id/345584iC3EBCDF63B3936A4/image-size/large?v=v2&px=999 "firefox_lzbTdDN0qD.png")

Hi everyone,

Please help me understand what I'm missing.

I have actions which are creating new issues in "**For Each Branch"** . After the issues were created I would like to change **"Due Date"** field for each of those.

From one hand I understand that Branches are isolated structures. From the other hand the warning tells me that "**For Each Branch"** should fit the requirements for the action **"For: All Created Issues".**However the rule could not be saved because the Branches are not seeing each other. Maybe I'm understanding something wrong in this warning?

If I create issue outside the branch the warning disappears.

If shown structure is not working, so how can I change "**Due Date**" field for every created issue in current rule?

Thanks for the reply.


Answers:
author: Trudy Claspill
body: Hello [@Dmytro Komlyk](/t5/user/viewprofilepage/user-id/5584261)

Welcome to the Atlassian community.

Refer to this document for more information about branches:

<https://confluence.atlassian.com/jirakb/in-the-automation-parallel-execution-of-the-branches-to-main-thread-can-produce-incorrect-unexpected-outcome-1115147731.html>

You cannot have one branch dependent on the completion of another branch because the branches may execute at the same time.

You don't need a separate branch to edit the Due Date of each created issue. You can set the value of that field in the same action you use to create the issues.

comments: author: Dmytro Komlyk
body: Hi [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)

Action **"Create Issue with a Request Type"** does not have Due Date as Common Field, but action **"Create Issue"**does have Due Date as Common Field. But I need to use the fist one.

In my case request type I have created has Due Date as Context Field in Issue View. Action **"Create Issue with a Request Type"** is reflecting Due Date field only in case the field is placed to Request Form. But I do not need Due Date on Request Form. This is why I can't set Due Date field value in the same action I use to create the issue.

On the screen it is shown the Due Date is absent in the list, however it is present in Request Type as Context Field in Issue View, as I told earlier.

![firefox_BvPAONYSrr.png](https://community.atlassian.com/t5/image/serverpage/image-id/345780i07E2FC1F669F2AE7/image-size/large?v=v2&px=999 "firefox_BvPAONYSrr.png")

I have tried to set Due Date field using JSON with no luck. Audit log always says the field is skipped.

![firefox_4RpKdB3BFv.png](https://community.atlassian.com/t5/image/serverpage/image-id/345781i245CA975C5AD84C9/image-size/large?v=v2&px=999 "firefox_4RpKdB3BFv.png")

![firefox_86q43D0T3S.png](https://community.atlassian.com/t5/image/serverpage/image-id/345782iB198C7AA6C280D52/image-size/large?v=v2&px=999 "firefox_86q43D0T3S.png")

Any other suggestion, guys, of how I would achieve editing Due Date in my case?

Thanks in advance.


author: Trudy Claspill
body: Hello [@Dmytro Komlyk](/t5/user/viewprofilepage/user-id/5584261)

Why must you use **Create Issue with Request Type**?

An alternate solution is to set up a separate rule for the actions of the second branch. In the current rule add some unique value (unique to this rule) to each of the issues that is created. Then set up a second rule that is triggered by issue created, determine if that issue has that unique value, edit the Due Date field, and remove that unique value from the issue.


author: Dmytro Komlyk
body: Hi [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)

Using **Create Issue with Request Type** is a requirement from the customer.

I have solved the problem using variables and **For: JQL** branch. I am triggering other rule after the action **Create Issue with Request Type** which is using **For: JQL** branch to find the value from the parent issue and calculate **Due Date.** Then I am saving **Due Date** to a variable and apply it to my newly created issue. It works really nice.

Thanks for giving me that idea.

![firefox_6Ry9ZxvjEL.png](https://community.atlassian.com/t5/image/serverpage/image-id/345992iE6AB0C8945CEF71D/image-size/large?v=v2&px=999 "firefox_6Ry9ZxvjEL.png")


Tags: cloud

jira-service-management

jira-service-management-cloud