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,463,428
Community Members
 
Community Events
176
Community Groups

How retrieve attribute value from a Insight object using Jira Automation?

Edited

Hello,

 

i'm trying to retrieve some data from attribute but i don't found the good way.

 

I found this tutorial but i don't understand how it's work: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

To test it, i just use a manual trigger in Jira automation and put the smart value.

In my example, the object group is "Clients" with somes clients with differents attributes like "Address", "Open time" etc.

 

Is it possible to retrieve the attribute easily ? 

 

Thank you.

2 answers

1 accepted

1 vote
Answer accepted
Ivan Lima Community Leader Feb 08, 2022

Hi @Julian from AF, following the article you shared should work. Why are you not able to make it work? Could you please share a bit more details about your setup? I assume you've got a custom field in place mapped to the schema you want to pull the attributes from.

Hello,

yes to explain : 

Here an issue example, and i would to get back value from Jira automation for the insight attribute Pick-Up Address. I want to get back Name, Address, Locality + CP

2022-02-09 10_02_42-Window.png

 

 

usually to test smart-value, i create a manual trigger on Jira Automation to test it and check the comment wrote to see the value but actually nothing works

2022-02-09 10_06_54-Window.png

here the object in Insight:

2022-02-09 10_05_19-Window.png

 

Any idea? Thank you !

Ivan Lima Community Leader Feb 09, 2022

You have to use the actual object, though. In your case, Clients. See the example below.

I've got an Employee object with an attribute object Manager for the CRM schema, which points to Employee in this case.

Screen Shot 2022-02-09 at 9.19.03 AM.png

 

For the automation, as an example, I'm adding a comment to the issue using the smart values.

Screen Shot 2022-02-09 at 9.21.17 AM.png

Comment on the issue based on smart values.

Screen Shot 2022-02-09 at 9.23.32 AM.png

I hope that helps.

Thank you for your reply. Can you develop the "actual object?". In my case i execute the manual trigger through a specific issue, i have different insight field inside this issue. 

 

I tried what you explain but still not working. 

I tested {{Clients.("Address")}} (because the attribute is just text but still not working.

 

If i use {{"Delivery address".Summary}} i have the Name of the object but how have his attribute?

{{"Delivery address".Address}} doesn't return anything. 

 

 

Thank you 

Ivan Lima Community Leader Feb 10, 2022

Clients should be your insight object custom field, where you need to set the insight objects field configuration by selecting the schema and scope to ensure your smart values won't find conflicting objects/attributes to fetch. In this case, if the Insight object is Clients, ensure you scope your custom field to Clients object. Once you review that, you can do {{Clients.Address}}. The same applies to all other fields. If, even though you can't make it work, which you probably will, I suggest you share your step in more detail (if you're comfortable doing so):

  • Custom field context (Insight objects field configuration)
  • Schema, Object and object attributes (type, type value)
  • Automation (smart values section)

The automation, if it's triggered manually or based on issue triggers/events, shouldn't change the acton results you're trying to achieve in this case.

Like Calogero Kalos Bonasia likes this

Hi Ivan,

 

i created another Schema for the test to avoid to show sensitive data.  I created a new Insight custom field "Delivery Address 2"

{{Clients."Address"}} still not working. The target is to extract the value "street border 4" of "Address" with Jira Automation. 

 

I will share with you all information : 

2022-02-10 15_42_17-Insight - AF Jira.png2022-02-10 15_43_01-Insight - AF Jira.png2022-02-10 15_43_14-[TR-8] Nouveau transport - AF Jira.png2022-02-10 15_44_06-Window.png2022-02-10 15_44_11-[TR-8] Nouveau transport - AF Jira.png2022-02-10 15_44_57-Window.png

 

 

Is it all you need to troubleshoot? Thank you very much Ivan. 

Ivan Lima Community Leader Feb 10, 2022

Assuming the filter scope has the correct Id, your CF is "Delivery address 2", and you have already defined the "Delivery address 2" scope as your Clients' Insight object, so your smart values should point to it. Try replacing your smart value for the one below. You should be able to get that working now.

{{"Delivery address 2".Address}}

The filter scope is correct because you can see on the issue print screen the object "Test Company", right? 

 

I tested {{"Delivery address 2".Address}} in the manual trigger and still empty :(. 

For information with {{"Delivery address 2".Summary}} it's working, i have the name

2022-02-10 18_06_53-Window.png2022-02-10 18_06_58-Window.png

Ivan Lima Community Leader Feb 14, 2022

Hey, @Julian from AF, I tested Jira Cloud but found this for Server/DC. "We do not currently support accessing fields within insight objects." Therefore, insight fields' full name, key and summary.

https://confluence.atlassian.com/automation/smart-values-993924860.html

Screen Shot 2022-02-14 at 9.26.04 AM.png

oh ok...  i need to create for each value others text field to extract it in the workflow in this case ;(. Ok thank you !

Like # people like this

Can we get this feature automation Data center version?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20
TAGS

Atlassian Community Events