How can I search Confluence pages referencing a particular user? - search

In Confluence one can mention user (link to user profiles) using #-mentions. This generate in the source of the page the following source code:
<ac:link>
<ri:user ri:userkey="7adcb12b54a7421801558f952560024b"/>
</ac:link>
and this is visible on the page as a link:
<a href="/display/~USERLNFN" class="confluence-userlink user-mention current-user-mention userlink-0"
data-username="USERLNFN"
data-linked-resource-id="150351190"
data-linked-resource-version="2"
data-linked-resource-type="userinfo"
data-base-url="https://wiki.swisscom.com"
data-user-hover-bound="true"
title="">
#Lastname Firstname, Department
</a>
How can I search for all pages containing this reference?

I have confirmed this can be on Confluence server 7.4.7, and so should be the same on most server/dc installations. This currently cannot be done on cloud.
Within the Confluence Advanced Search there should be an Add a filter button. Click that, then select Mentioning User and input one or more user names. That should return all mentions of a user, including in comments. You can filter out the comments by changing Of Type to be Pages
This also isn't a programmatic solution, but that would probably be a question of the best way to access all the pages, and then search them. Maybe download via API then Elasticsearch?

Related

SharePoint My Sites Social Comment in multiple languages

I'm trying to create custom post to current user newsfeed in SharePoint 2013 Newsfeed. I must create posts in different languages like OTB functionality.
So I have something like this:
SocialDataItem docLink = new SocialDataItem
{
ItemType = SocialDataItemType.Document,
Text = "link to a document",
Uri = docLinkUrl
};
SocialPostCreationData postCreationData = new SocialPostCreationData();
postCreationData.ContentText = "Check this out {0}.";
postCreationData.ContentItems = new SocialDataItem[1] {
docLink
};
I would like "Check this out" to be read from resource file or something like that. The same functionality is with OTB. If a user starts to follow a site this is added to his news feed and if you change current language the text is changed.
Example:
English language:
George is now following project.
Slovenian language:
George zdaj spremlja mesto »project«.
Is this even possible with a custom code?
Thanks for all your replies.
It looks like you are trying to create a newsfeed post with custom code, maybe by using a button on an ASPX form. Anything will be possible with your custom code, so yes you could post to the users' feed in any language and yes you can use resource files to achieve this.
The newsfeed posts itself will only be in one language though and can never be in multiple languages.
The posts are actually stored in a Microfeed list within the users' personal site as list items. There is no possibility to store multiple versions (i.e. languages) of said list items in that list and hence you cannot have the same newsfeed post appear in multiple languages.
This would only be possible with quite complicated custom code: If for example you would create your own Newsfeed webpart which displays the regular newsfeed entries and additionally translated posts from another special custom list. Very complicated.
As for resource files you can follow any localization tutorial on localizing such as: Walkthrough: Localizing a Web Part. The correct localization will automatically be loaded by the current users' culture. This way you could post to the users feed in his/her language. Other users will also see that exact same post in the same language.

CRM 2011: Lookup in HTML Web Resource

Can a lookup be used in an HTML web resource?
I have replaced the command of the "Convert to Case" button on the email entity.
It now opens up an html web resource on click.
I need to show lookup fields to Customer and Subject.
Is there an alternative to a lookup for this situation?
Adding lookups to your own page is definitely a pain since they don't 'provide' you with a control to add it to your HTML resources. I am also not aware of any toolkits that are readily available.
A possible solution for displaying subjects (assuming you don't have too many) would be to use a HTML select element and populate it with the possible values.
As far as the customer goes, it will most likely take some creativity or elbow grease to replace since most likely you have too many accounts/contacts to display in a HTML select. One thought is you are most likely converting an e-mail with a contact or account already in the e-mail (from or regarding fields). You can try and pull all the accounts and contacts from the e-mail fields and allow the user to select one of those via radio, select, etc.
If something like that doesn't work then most likely you will need to create your own lookup, or something similar like a text box with an inline grid that gets filtered like a lookup so you don't have to recreate the entire dialog experience.
Hope that helps.

How can I add an external link to a form in CRM 2011?

I am creating a form in CRM 2011 that asks a user to accept a Terms of Service agreement, and I would like to place a external link to that document within the form.
I have read about creating a navigation link along the left hand side of the form, but I believe it would be more legible to the user to display the link adjacent to the "Accept Agreement" field in the form. Is this possible?
You need to create an HTML Web Resource.
Create an html document (for example term.htm) with inside the link, (you can customize the aspect with CSS)
Stack Overflow FAQ
Now create a Web Resource inside CRM containing the html code and add to the form.
After the Web Resource is added to the form, inside the properties you can change the formatting style (for example to occupy 1 row and 1 column without scrolling and no border)
In this way you have one link inside the form using supported customizations.
I can see two ways of doing this:
Add a field to contain the hyperlink (if create a hyperlink field) it will behave correctly. Then just set the value using JavaScript to be the correct URL. However this means saving it to the database and if the URL ever changes then you have to update all those records.
Add a very small html web resource with the URL in and stick that on the form.

How to display notes in opportunity form of mscrm 2011?

I need to display account notes across all opportunities. typically a MSCRM creates a blank Notes section for each new Opportunity you create inside a account, but I need to display a running Account dialog of conversations to review in one continues notepad (means display all notes).
Can anyone tell me how I can display all notes in the opportunity form?
Is this possible without coding (or in fact, with coding!)
Thanks in advance,
SD
Well you can do this a few different ways.
1) The easiest way is to add an IFRAME and then point to the applicable Account notes container. You'd have to set the "id" attribute based on the account. Here's what your IFRAME url will look like:
/_controls/notes/notesdata.aspx?EnableInlineEdit=true&EnableInsert=true&id=%7bEF88BCAA-C3EB-E111-B142-78E7D162EE67%7d&ParentEntity=1
2) If you are only wanting to display the notes and not allow for a user to edit them (read-only), then you'll need to use fetch to query the annotations where the related id equals the account.
Just to be clear the on requirement here.
I believe you are saying: Each Account has multiple Opportunities, each Opportunity has many Notes. On the Account you want to show all the Notes for all the Opportunities.
I don't think you can achieve this with out of the box functionaility, I would suggest creating an SSRS report and iFrame'ing it in.

Filter a Content Query Web Part using the values of another web part on the same page

I have a Content Query Web Part on my page that rolls up all the contacts lists from all the sub-webs in my site collection. this works fine. I'd like to be able dynamically filter the contacts rollup by having the user click on a list of leters of the aphhabet at the top of the page. click A and see the contacts that start with A, etc...
I'm plopping various filter web parts on the page, but don't see how to filter the results of the CQWP. The connections menu is not much help.
You can't use the OOB filter webparts or CQWP like that.
What you can do is extend the CQWP and add some functionality to it - take a look at Enhanced Content Query Web Part over at codeplex.com for inspiration.
Then send the clicked letter to the QueryString and have your extended CQWP read the filter value from the querystring - this would perform really well
Generally, this sort of thing requires some development. Here's one source:
http://www.andrewconnell.com/blog/archive/2008/02/18/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering.aspx
i would not recommend you to use a cqwp....instead try using a dataview web part it allows you to filter the content using querystring parameters without coding.

Resources