Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automate linking new Issues to Stories using 'ID' (text) search

rafters magnet0j July 15, 2023

Hi all, wondering if this is possible and how to go about it: 

At my biz we use a 'page ID' for each chunk of work we are creating. Sometimes it's in a custom field, sometimes it's in the description/summary. (We can change the way we work if this Jira automation is possible; e.g. always use a custom field, or only use the Summary, etc). But since we have different habits I am wondering if there's a way to just search the ENTIRE issue (e.g. text ~) for a given ID...

Page IDs are fairly unique and look like e.g. 012-345, 111-222, etc

What I'd like to do, is link new (or current, if possible using some other trigger?!) Issues to their overarching Stories (but we might be missing a few Stories from the Board before other Issues get logged with the page IDs)

I.e. so that whenever an issue is logged/updated, if it cross-references the overarching Story and if it's there, linkes to it (so all releated issues are collected in one place automatically).

E.g. "New Issue 123-456" gets auto-linked to "Story about 123-456" upon creation (if such a Story exists).

Is this even possible?! If so, how would I go about it? Thank you in advance. 

2 answers

1 vote
Evgenii
Community Champion
July 15, 2023

Hi, @rafters magnet0j 

Yes, it's possible. It will be tricky to make, but it will work.

You'll have to use Jira Automation, regexp, and variables. In a few words:

1. When new issue is created, you take ID fom summary with regexp. Save it to variable.

2. Search for story with summary, where similar ID is mentioned.

3. Link issues.

I'll try to make an example

rafters magnet0j July 15, 2023

Thank you! 

Evgenii
Community Champion
July 17, 2023

Hi, @rafters magnet0j 

Sorry for late reply, but I was sure, that I posted example. It works and you can use it. It's based on regexp and smart values.

Screenshot_1.jpg

Like rafters magnet0j likes this
rafters magnet0j July 19, 2023

Oh wow, I'm going to try this out tonight – thanks so much! 😎

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2023

Hi @rafters magnet0j 

Yes, that is probably possible, and...

Writing automation rules requires both learning and experimentation.  I recommend trying to create a rule first, and if you run into challenges post images of your complete rule and the audit log details so the community can offer suggestions.

To get you started on creating your rule, please refer to these documentation and example sources:

 

Kind regards,
Bill

rafters magnet0j July 17, 2023

Thanks so much Bill. Got a lot of studying to do! 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events