Can i get information from the database with autocomplete like @?
Asked by J D:

Hi,

first i would like to say i like the PocketQuery plugin a lot. Its very powerful.

My task these days is to find a way to show and reference content from another application which collects data from many other applications and bring them relation so ist easier to for everyone to get this data. "<https://answers.atlassian.com/questions/9880899>" Also some of this data whould be shown in confluence for other users. This is where i see the PocketQuery is working for us.

But furthermore some colleagues want something like the autocomplete for names if they are linking to something in the database, too. We meet this week to talk about what they really want. But i wanted to ask this in advance, so im prepared to say: "This is the tool of choice." ![laugh](/html/@BEA1CC333F4D830F5303329D7DC07DE4/images/emoticons/laugh.png "laugh")

I know this is not actually what the PocketQuery is build for, but is such a thing possible with the template mayby?

<br />

best regards,

J.D.


Answers:
author: Felix Grund (Scandio)
body: Hi J.D.!

We are very glad you like PocketQuery and we hope the plugin will fit for your purpose! Please let me just verify I understand you correctly.

Let's take the example with the @-autocomplete. My questions:

1. Are you querying Confluence usernames out of your DB using PocketQuery?
2. Do you want to have *mentions* with these users in your page?
3. Do you want to show the user profiles?

Or am I totally on the wrong track? In general, I'm sure you'll be able to achieve what you want in some way :wink:.

Regards, Felix \[Scandio\]

comments: author: J D
body: Hi Felix,1. Similar, i would query other things like servernames, divisionnames.2. Yes i would like to mentions those names.3. What im actually want to show is a good questions. At the moment the task discription is not really complete. But i just wanted to start to ask you those things. :) Possible example for me:In the db are the Server listed with their names, and what is running on that server etc. On Confluence someone want to mention a server where our webservices are running. And when the webservices migrate to another server, this servername should get shown.Do you understand what i think of? :)Best Regards,J.D.


author: Felix Grund (Scandio)
body: Hmm. I don't really understand yet. Mentions in Confluence only work with usernames of users registered in Confluence. You cannot use servernames or similar things for mentions. It won't work either to "mention" data queried from the database with Confluence mentions since the mention functionality is only for Confluence users. So if I understand this correctly, this won't work because it's not the way mentions work in Confluence. Or am I still on the wrong track? :)


author: J D
body: I know that the @ - mention just works for the users. I want something similiar for Servernames etc.Like you write a # or another placeholder - and the a list of servers in a dropdown list appears as the list for users.


author: Felix Grund (Scandio)
body: Ah, I see. That's an interesting idea. Sorry, there is no similar feature in PocketQuery. But you can always contact us if you want specific features more "urgently" ;)


author: J D
body: Okay, no problem. I just wanted to ask to see if i missed something. We will talk today about what we do next. I will contact you if we need a more urgent solution. :)Best regards and thank you for your help,J.D.


Tags: confluence-administration

pocketquery