Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,462,968
Community Members
 
Community Events
176
Community Groups

Using automation on smart links

I'm trying to see if it's possible to add a tag to a story if the design smart link is populated- is that possible? The goal is to be able to search for tickets that have a link to a figma populated in the 'designs' smart link. 

 

Thanks!

1 answer

0 votes
Darryl Lee Community Leader Nov 29, 2022

Hi @Neil Armstrong 

Because I'm not actually a regular Figma OR Jira Cloud user, can you tell me how the Figma smart link is presented in the issue?

I was able to add a Weblink to a Figma I just created, as well as paste that link in a comment, which made it into a Smart Link that I can hover over, preview, etc.

If either of those cases is how you're adding smart links to a Jira story, then I think these are your two options:

Link as Weblink:

Screen Shot 2022-11-29 at 3.23.35 PM.pngYou'll have to make a Web Request to Jira's REST API for web links, and see if any of them include "https://www.figma.com/"

Details on making web requests to Jira are here: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

You'd want to hit an endpoint like: https://YOURHOST.atlassian.net/rest/api/3/issue/{{triggerIssue.key}}/remotelink

(I'm thinking you'd trigger off of "Issue updated".)

So then you'd do need to use Advanced branching to iterate through all of the weblinks:

Screen Shot 2022-11-29 at 3.36.38 PM.png

Then do an Advanced compare condition to see if any of them contain the Figma URL:Screen Shot 2022-11-29 at 3.37.06 PM.png

Link in Comment:

Screen Shot 2022-11-29 at 3.23.55 PM.png

If you're looking for links in comments, it's a lot easier. You'd just trigger off of Issue commented and then used the Advanced compare condition to check if {{comment}} contains the Figma URL.

If the comparison succeeds, then you'd use the Edit the issue action to add your label.

Let me know if this makes sense, or if you have any questions.

Oh! Rereading your original post, if "Designs" is actually a URL field, this is even easier.

You would trigger on "Field value changed" for the Designs field and then do an Advanced compare condition to check if {{fieldChange.toString}} contains the Figma URL.

Suggest an answer

Log in or Sign up to answer