Create an insight automatically via automation
Asked by Omer Meshar:

Hi,

We have an FR (feature request) system in Jira, from which we would like to create ideas when applicable. We created an automation on the FR that creates the corresponding idea in JPD, with the needed information. We also link the FR to the idea, using the "Added to idea" link type.

The problem is that this link type:

1) does not appear on the idea (thus the linkage does not show up in JPD)

2) does not create an insight

The workaround would be to create a link from another type, but then if we would like to add it manually as an insight, it will create two links and not one.

Is there a chance that using this link type would create an insight?

Is there a chance to see this link in JPD, if not as an insight?


Answers:
author: Gilad Waldman
body: Is there any update on insights automation [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) ?   
I know this is asked in multiple places, but we are eager to use this feature as we do everything manually today.


author: Tanguy Crusson
body: Hi, this link type is not meant to be used like that (it's a reserved link type, we need to find a way to hide it). You can however use the REST API to create an insight. We provided an example here: <https://github.com/Atlassian-integrations/polaris-forge-ref-app/tree/master/push-example>

comments: author: Omer Meshar
body: Thanks [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) - would we be able to use this REST API within an automation rule? Is there an example of doing this?


author: Tanguy Crusson
body: HA! I was afraid you were going to ask that, because I never tried it myself ?

There is the "send web request" action in Automation but I've never tried to use this to call our API. I can't guarantee it'll work (would need to figure out how to authenticate using OAuth2 using this ?) but it might be possible - let me ask the automations team


author: Tanguy Crusson
body: Never mind, I spoke too fast - the team confirmed this is not possible today. Sorry about that! We'll need to add "create insight" as an action for Project Automation.


author: Omer Meshar
body: A "Create insight" action in automation would be GREAT!


author: Omer Meshar
body: [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) by the way, another thing you could do with automation (though I don't have an example of what this would be good for right now) is to provide a "Created insight" trigger.


author: Omer Meshar
body: [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) any progress regarding the 'Create Insight' automation action? That is really something we would love to use.

Currently, we continue to use automation that links the FR to the idea, even though it doesn't create the insight, and afterwards the product manager has to manually create the insight between the two. This manual step is a problem.

Where do I need to vote to get the 'Create Insight' action?


author: Tanguy Crusson
body: Hi Omer, nothing new on that front yet.


author: geron
body: The link <https://github.com/Atlassian-integrations/polaris-forge-ref-app/tree/master/push-example>  
does not work  
The new one is <https://github.com/Jira-Product-Discovery-Integrations/polaris-forge-ref-app/tree/master/push-example>


author: Patrick
body: [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) is there a feature request where we can track this?


author: Omer Meshar
body: Short explanation why we are not using the chrome extension for this:

1) When we create an idea, we would like certain fields to be set, which we can do via the automation

2) When we create an idea from an FR, we would like certain fields to be copied from the FR to the idea, which can be done via the automation

3) The PMs are already in Jira reviewing the FR, and it is much more convenient for them to use an ability from Jira than go to an extension outside the screen (and not all use chrome...)