Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,891
Community Members
 
Community Events
165
Community Groups

JIRA auatomation help

I was wondering if someone could kindly help me. I am trying to create an automation which loops through any JIRA issue that
has been updated, and looks for specific words, replacing them with hyperlinks.

For example,

I wish to lookup the word Lead and replace with a URL to the lead documentation
I wish to lookup the word Clients and replace with a URL to the client documentation


Ideally I wish for the automation to be simple on a single automation.

1 answer

Hi @will 

Writing automation rules is quite a bit about learning and experimentation.  So...what have you tried thus far to solve this problem?  If you post images of your rule, the audit log details, and what is not working that will provide the community more context to help.

For example, are you stuck trying to find/replace the text?  And what fields do you want to change?  And where are the replacement URLs coming from?  And so forth...

If you have not started yet, please review this documentation and examples to help:

Kind regards,
Bill

Hi Bill,

I have tried multiple thinks, the one I thought would get me the closest was to do a string replace on the words by using smart values, unfortunatley it works for a single replace, however I couldn't get it to work for multiple.

The replacement functions work on one field at a time, not an entire issue.  For example, to do this for just the Description field you could use the replace() or replaceAll() function, depending upon if you want to use a regular expression:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#replace-String-target--String-replacement-

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#replaceAll-String-regex--String-replacement-

{{issue.description.replace("Lead", "yourLeadUrl")}}

Hi Bill

 

Let me show you the issue I face when trying the above:
https://www.loom.com/share/bc9207cb96a54aa3927ea06f075faf8f

Hi!  Would you please post your images of your rule and the audit log details here in this community thread.  That will provide context and ensure the images are preserved for future people looking at this question.  Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

168 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you