Automation that populates field value from JPR to Jira
Asked by Yuliia Vyborova:

Hello!   
I need automation that populates field value SPR or IPR to Jira ticket that linked as 'is delivered' to JPD idea. I set the following automation and log says Success but there are no change in Jira ticket.

Please see steps I set:

![Screenshot 2024-08-02 at 9.57.34?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339782i5880955405293233/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 9.57.34?PM.png")![Screenshot 2024-08-02 at 9.57.44?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339783i5A0E6A19F2742C27/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 9.57.44?PM.png")

Audit log says Sucess![Screenshot 2024-08-02 at 10.20.53?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339784i13FA820B3BC49807/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 10.20.53?PM.png")

But Jira ticket (2nd picture) that is linked as 'is delivered by' to Idea has empty value, however I se SPR value in JPD (1st picture)

![Screenshot 2024-08-02 at 10.21.49?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339785i5E04862A44C88446/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 10.21.49?PM.png")![Screenshot 2024-08-02 at 10.22.11?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339786i67EAB95BFE74A297/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 10.22.11?PM.png")

What I missed in automation rule?


Answers:
author: Nick H
body: Hi [@Yuliia Vyborova](/t5/user/viewprofilepage/user-id/3597151) ,

Can you share the THEN component of your automation?

I believe you will want to **Copy from Trigger issue** if you do not have this selected.

It's also typically best practice to map to the same field-types, otherwise there may be some unexpected behavior.

It appears the "SPR or IPR" may be a single select option. Important to note that this option needs to be available within the "SPR or IPR item?" field's options. Automations do not have the ability to create new options, so they need to exist in order for the automation to work as expected.

comments: author: Yuliia Vyborova
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) Sorry for delay, I was on vacation.

I just checked that SPR or IPR item and SPR or IPR? have the same field type and options. So it should populate values properly. Also, I am attaching THEN action

![Screenshot 2024-08-14 at 6.59.19?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/341819i745F6A45AF954648/image-size/large?v=v2&px=999 "Screenshot 2024-08-14 at 6.59.19?PM.png")


author: Yuliia Vyborova
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) also, I wonder what is the best way to keep both Idea and delivery tickets aligned? I see the potential issue with updating one field in Idea and need to update field on delivery ticket - that sounds like a not consistent way to do and also not scalabel so I appreciate any ideas here.


author: Nick H
body: Hi [@Yuliia Vyborova](/t5/user/viewprofilepage/user-id/3597151) ,

You should be copying from the **Trigger issue** in the THEN condition, and not the Current issue for this type of automation.

As for keeping both idea and delivery tickets aligned, you would need an automation designated for both directions - or realistically:

1. When delivery is created, map idea fields to delivery fields
2. (After delivery created) When delivery field(s) updated, update idea field(s)
3. (After delivery created) When idea field(s) updated, update delivery field(s)

We understand this isn't exactly scalable especially if there are lots of fields you want to keep aligned, but at this time it's only possible to update ideas \<-\> deliveries through automations.


author: Yuliia Vyborova
body: Got it, thank you [@Nick H](/t5/user/viewprofilepage/user-id/2540930) ! I adjusted THEN step and automation works now!


author: Hermance NDounga
body: Hey Yuulia,

We have created templates in global automation that let you bring info from the idea to the delivery ticket. Can you use the first global template as the base for your rule? making incremental changes to the template so you reach what you're looking for

<https://community.atlassian.com/t5/Jira-Product-Discovery-articles/Introducing-new-automation-templates-for-Jira-Product-Discovery/ba-p/2504036>

Best Regards,  
Hermance  
Product Manager @ Jira Product Discovery

comments: author: Yuliia Vyborova
body: thanks a lot [@Hermance NDounga](/t5/user/viewprofilepage/user-id/430755) ! I will explore the article