Forums

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

Insight Custom field in Jira Automation

Rafał Chomik
Contributor
September 9, 2021

Hi,

I want to create automation to copy value from trigger issue to the new one.
When I selected New Action > Create Issue, there is no my Insight Custom field on the select list.

In more options I have use the belowe JSON, but the value from customfield is not moved to the new issue. Anyone know the way to do it?

{
"fields": {
"customfield_10234": [
{
"value": "{{issue.customfield_10234.get.value}}"
}
]
}
}

3 answers

1 accepted

1 vote
Answer accepted
Marco Brundel
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.
September 10, 2021

Hi @Rafał Chomik 

Have you tried it without GET? 
{{issue.customfield_10234.value}}

What I often do is include the various possible smart values ​​in a comment to be created and when I test the rule I see the effect faster.

Also see 
https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/


Regards, Marco

Rafał Chomik
Contributor
September 10, 2021

I was trying different various, but nothing works properly. Probably I will have to reach out to Atlassian directly.

Marco Brundel
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.
September 15, 2021

And

{{issue.customfield_10234.summary}}

0 votes
Gaurav
Community Champion
September 10, 2021

Hello @Rafał Chomik 

I have worked on a use case where

  • Insight Custom Field stores one of the attributes of Insight Object
  • Automation is triggered at issue creation
  • Another attribute of the Insight Object is updated into a Text Field

The Automation Rule can also update the Insight Custom Fields as well. Please find below the screenshot of the rule. This can be customised as per the business use case.

Please share if there are any follow up questions.

Kindly accept the answer if it helps resolve the issue.

Insight Object.png

Rafał Chomik
Contributor
September 10, 2021

Sure, It would work if I would be able to select my Insight custom field on the fields list.
There where you have 'Choose fields to set..." there is no my field. I have attached a screenshoot above.

0 votes
Julie d_Antin _Elements_
Atlassian Partner
September 10, 2021

Hi @Rafał Chomik 

I don't think you're using the right smart values to fetch the Insight data. Check out this page: https://support.atlassian.com/jira-service-management-cloud/docs/smart-values-insight/

If you're open to trying an app, Elements Copy & Sync is compatible with Insight assets (and in my opinion easier to set up than smart values, but then I work for Elements ;-) ). I published this article that shows how the app works and what it looks like when you copy an issue: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-to-clone-issues-to-another-project-with-Insight-Assets/ba-p/1610620

Rafał Chomik
Contributor
September 10, 2021

Yi @Julie d_Antin _Elements_ , you are right, I saw the docs, but I don't see my Insight Custom field on the fields list, so I need to use JSON formula to do that. 

isnight.png

 

On previous version of the Insight, when it was a separated application, everything worked fine, but now when Insight is integrated with JIRA some problem appear. Thank you for that app from marketplace, but I would like to manage that fully by automations. 

Tania van Wyk de Vries July 28, 2022

@Rafał Chomik we had the same issue. You need to setup the rule as a Global automation rule and not a project specific rule to access the Insight fields in the list. 

Like Rafał Chomik likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events