The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

New Feature Forms : Possible to populate Data Collection with Insight Rest API filters ?

d.kirsching
Contributor
January 17, 2022

Hi all, 

 

Do somebody tried to populate a data collection in new forms feature with Insight Rest Api ? 

 

https://support.atlassian.com/jira-service-management-cloud/docs/create-edit-test-or-delete-data-connections-for-forms/ 

 

Seems to not support '? filters' when we try to connect.

 

Here my query : 

https://api.atlassian.com/jsm/insight/workspace/confidential/v1/iql/objects?iql=ObjectType = "Supported MacOS Laptops" AND "status" = "offered"

and the result ( in Postman is working very well )  : 

Capture d’écran 2022-01-17 à 14.05.01.png

My query without filter : 

https://api.atlassian.com/jsm/insight/workspace/confidential/v1/iql/objects

 

Capture d’écran 2022-01-17 à 14.07.45.png

Thanks for your feedbacks and your help.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Answer accepted
Simon H
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 Champions.
January 17, 2022

@d.kirsching in the not too distant future you will be able to add insight fields directly to your forms, but in the meantime it looks like you have discovered a bug in the data connections in ProForma (i'm the product manager for ProForma/Forms).

We have added this bug to our backlog, but there is a workaround if you encode the url yourself e.g.

https://jsonplaceholder.typicode.com/users?page="1"
would become
https://jsonplaceholder.typicode.com/users?page=%221%22
and this appears to work.
You can use a webpage such as https://www.urlencoder.io/ to do the conversion yourself.
I hope this information helps.
Regards,
Simon
d.kirsching
Contributor
January 17, 2022

Hi  @Simon H 

 

I appreciate you're fast answer and I can confirm that the workaround provided is well.

 

Thanks a lot for your help.

Like Simon H likes this
ian
Contributor
June 4, 2022

Hello @d.kirsching and @Simon H .

Sorry to resurrect this old thread but just came across it and am wondering if you are able to tell me what I need to authenticate?

I'm trying to do exactly what you are doing but can't seem to get past the authentication step. I've also asked the question here:

forms data connection insight rest authentication (atlassian.com)

I'm thinking it's only possible w/ a JWT Token because I've tried both my API token and an Insight Import token.

@Simon H : are you able to provide any updates on when the Forms-Insight integration will be enabled? I know roadmap says Q2-Q3.  

Thanks.

ian
Contributor
June 5, 2022

Apologies! Worked it out. Basic auth with:

username = my email address

password = my jsm automation api token

Thought that I'd tried this combination but perhaps I was using my base64 encoded token. I am also quite new to this so probably just a noob mistake! 

Also had to use %22 in my iql query as you indicated above. Interestingly, substituting %22 for the quotes is not required in Power Automate. 

Thanks again for posting the above as I suspect I would have probably given up by now if I'd not found your posts.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events