I want to create an AUTOMATION so that when the user writes the same summary in another item, they a
Asked by Gustavo:

![Captura de tela 2023-11-09 135632.png](/t5/image/serverpage/image-id/291002iD69F303BC5809052/image-size/large?v=v2&px=999 "Captura de tela 2023-11-09 135632.png")

I want to link my items when the SUMMARY field is written the same.  
Ex - item 1 SUMMARY RSX-1B47  
item 2 SUMMARY RSX-1B47  
Then, since the RSX-1B47 are the same, it would have to link automatically


Answers:
author: Gustavo
body: Thank you, now how would I do it to not link with old items, for example this one has already been created, then I would like the next one to be created to no longer be linked to these. Can this separation be done with a date?

comments: author: Kseniia Trushnikova
body: [@Gustavo](/t5/user/viewprofilepage/user-id/5359968), you can modify JQL and add creation date:

```
summary ~ "{{issue.summary}}" and created >= -30d
```

This JQL will only search for issues created in the last 30 days.


author: Gustavo
body: [@Kseniia Trushnikova](/t5/user/viewprofilepage/user-id/4593830)

```

summary ~ "{{issue.summary}}" and created >= -1d

```

ok, leaving yesterday's items, for example, not mixed with today's items, correct?


author: Kseniia Trushnikova
body: [@Gustavo](/t5/user/viewprofilepage/user-id/5359968), not sure what you mean... For issues created yesterday, use this:

```
created > startOfDay(-1) AND created < endOfDay(-1)
```

**created \>= -1d** will return all issues created within the last 24 hours (this includes yesterday and today).


author: Gustavo
body: No, I want to keep it as up to date as possible, preventing it from being mixed up with old records when they are linked

[@Kseniia Trushnikova](/t5/user/viewprofilepage/user-id/4593830)


author: Kseniia Trushnikova
body: [@Gustavo](/t5/user/viewprofilepage/user-id/5359968), then **summary \~ "{{issue.summary}}" and created \>= -1d** will work.


author: Gustavo
body: ok, I just have one more question, would I be able to create a lock so that when I release all the items linked together, like while all of them are not released, I don't move any of them to released, or leave the item marked saying that it still has pending issues, "item still to be be released"![IMG_9373.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/291158i5E929BD2B22EF69B/image-size/large?v=v2&px=999 "IMG_9373.jpeg")


author: Kseniia Trushnikova
body: [@Gustavo](/t5/user/viewprofilepage/user-id/5359968), I believe this can be done with Automation also, but this question differs from the original one from the post. Please create a new question, so other community users will have an opportunity to look at it and help you.

Thank you.


author: Kseniia Trushnikova
body: Hi [@Gustavo](/t5/user/viewprofilepage/user-id/5359968),

The text in the title appears to be cut off. Please type your question in the field Details (click ... \> Edit) or here in the comments.

Thank you.

comments: author: Gustavo
body: I updated, check below the image


author: Kseniia Trushnikova
body: [@Gustavo](/t5/user/viewprofilepage/user-id/5359968), got it. The easiest way to link issues with the same summary is to use **Lookup issues**. Here's the example:

![Screenshot 2023-11-09 at 21.23.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/291038i848CBC59321ED255/image-size/large?v=v2&px=999 "Screenshot 2023-11-09 at 21.23.14.png")

Use the smart value **{{lookupIssues}}**to link the trigger issue with the ones found in the action Lookup issues.

Hope it helps.

---

Updated a screenshot, the previous one was with incorrect condition.


author: Gustavo
body: He is connecting a new call with an old one  
[@Kseniia Trushnikova](/t5/user/viewprofilepage/user-id/4593830)

![Captura de tela 2023-11-10 110135.png](https://community.atlassian.com/t5/image/serverpage/image-id/291213iFC4366358C40E21C/image-size/large?v=v2&px=999 "Captura de tela 2023-11-10 110135.png")


Tags: cloud

jira-work-management-cloud