list of users and their UUID in a jazz project area - rtc

Greetings for the day
I want to retrieve the UUID of individual member in the project can any one help me by providing me the url.(OSLC or nonOSLC).
Note: Im not using any RTC Java API.

The easiest way to get the right url is to display the page which lists the members and admins
https://your.jazz.server/ccm/admin#action=com.ibm.team.process.editProjectArea&itemId=_your_project_area_id
And use the Chome DevTool Network view to see all the url used when that page is loading.
I see for instance a url using projectAreaByUUIDWithLimitedMembers.
See this perl script which uses the same service url
# Different URI's for main project area vs team area, very reasonable assumption that we wont hit a project/team area with more than 100K users
if ($projects{$projectArea}{'itemId'} eq $areaItemId) {
$URI = $jazzURI . "/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/projectAreaByUUIDWithLimitedMembers?processAreaItemId=" . $areaItemId . "&maxMembers=100000";
}

Related

country is getting appended twice in storefront URL(spartacus)

I'm having trouble with the basesite service. We currently have three websites: global, cn (China), and tw (Taiwan) (Taiwan)
To pick the region, we have a drop-down menu on the global site. Using baseservice(spartacus), the selected region is set.
this.baseSiteService.setActive(region);
localhost:4200/cn/cn When the above line has run, appears in the URL
Could someone please explain how it is appended twice in the url and how to override this?
You said in the comment that you "don't have any services or configs related to site context". So I guess what you see in the URL by default are 2 different site contexts: baseSite and language, which "by coincidence" have the same values pairwise):
localhost:4200/<baseSite>/<language>
I guess what you want to achieve in this case is to have an URL of the shape localhost:4200/<baseSite>. This can be achieved in 2 ways, depending on whether you're using static or automatic site-context configuration.
You can configure which site contexts should appear in the URL in 2 ways:
if you're using CMS-driven site context configuration in Spartacus (aka. automatic site-context-configuration), then you need to configure it in CMS Backoffice tool. As in the screenshot below, for each of your basesites go to WCMS -> Website -> <select your base site> -> Administration (tab) -> URL Encoding Attributes and put there only the value storefront (get rid of language or anything else there). And save the changes.
if you're using static site-context configuration in Spartacus, then you need to provide the following static config in your app:
provideConfig({
urlParameters: ['baseSite']
})
References:
Automatic Site Configuration Detection from URL (demo video)
Spartacus docs on Site-context configuration

Smart edit unable edit the page emailsignmodal

Hi Hybris 1811 smartedit I am trying to edit Email Signup Modal but as soon as I click on the link it redirects me to below page. I have multiple sites so sometimes I am getting this warning: WARN [hybrisHTTP20] [DefaultCMSSiteService] More than one site associated with URL [https://localhost:9002/?site=XXXX]. Returning first. Did anybody faced similar issue?
The main problem is that you have more than one site containing the same urlPatterns
This attribute represents a regex that is used by CMSSiteFilter to decide the website that will be used based on the URL introduced in the browser or requested by smartEdit(i.e https://localhost:9002/?site=XXXX)
In this case, more than one instances of CMSSiteModel were found and the first one was used.
In order to fix this you need to adjust each site to have its own, unique urlPattern . If you have apparel and electronics sites, the regexes for both should look like this
apparel --> (?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=apparel)(|\&.*)$
electronics --> (?i)^https?://[^/]+(/[^?]*)?\?(.*\&)?(site=electronics)(|\&.*)$
This can be changed in backoffice for each and every site:
Make sure that the preview URL is also changed accordingly so that SmartEdit will know how to perform the HTTP requests for this site:

Graph api get Teams config returning null

I have a team with a single channel and a series of tabs. Some tabs link to document libraries on SharePoint sites which I can browse fine. When I run a graph api call to try and get the details of the tabs in the channel with a call such as this
https://graph.microsoft.com/v1.0/teams/myteamid/channels/mychannelid/tabs
I get results looking like this
Graph api result
Some of the tabs come back with valid configuration data including contentUrl, however two of the tabs come back with null in every element of the configuration, despite the fact that they are just pointing to SharePoint document libraries
This is an issue because we want to use PowerShell with the graph api to clone a team to a new team and have all the new tabs configured ready for use, rather than relying on the user to click on each new tab and configure it
Why is the graph api not returning configuration details for these tabs?

how to create a list template in SharePoint online using VS 2013

I am going to create some declarative items in SPO using VS. I know how to create it through UI by I want to create programmatically. As I did some research, there are 3 ways.
First is through SP hosted App(add-in) then give manage permission on host web to create some list on its parent site.
Here is the article:http://www.sharepointnadeem.com/2013/12/sharepoint-2013-apps-access-data-in.html
This approach is not good because App web shouldn't apply any change on its host web.
Second is through Sandbox solution. Once I try to create a sandbox solution using SPO site URL, I will receive an error which said connecting to a remote site is not possible through VS. So I have to enter a local SP URL to create a sandbox solution. then I should create list template declaratively and deploy it and publish it to my SPO environment. Here is the article which explain steps:http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2012/01/10/how-to-use-visual-studio-11-to-publish-solutions-to-sharepoint-online.aspx
The problem that I have with this approach is I don't have access to my managed metadata columns which are located in SPO once I am developing list template in my local development machine.
Third approach is creating List or content type or template in App web which is not my case. This has been explained in this article:
sharepoint-journey.com/sharepoint-list-in-sharepoint-hosted-app.html
The problem here is, I want to have that template in my site (host site) not in App web site (sub site)
My question is: I want to provide some list template in my SPO environment by using VS 2013. what is the best approach for doing that? and how can I do that? Please give me an step by step instruction.
Thank you
You definetly want to go the App(Add-in) way. It is possible and in many cases prefereble to set up your lists on the host web and then just use the app web for a user interface, or if you don't want to utilize it at all: Just let the add-in do the heavy lifting in creating lists, columns and content types.
The important thing here is that you specify in your code that you want the lists to be created on the Host Web and not the App Web. For this to work you need to include a permission request in your app. When installed, the app will ask the user installing it if it can have permission to the host web. This is done by setting the relevant scope in your AppManifest.xml file, and then you set it under Permission: [your scope] - [permission level] You can read more about this at this resource: https://msdn.microsoft.com/en-us/library/office/fp142383.aspx
Then something like this code will allow you to create a list on your hostweb. Keep in mind that this list will still be available on the host web even if you remove your app.
oApp.install.addList = function (listName) {
var listCreationInfo = new SP.ListCreationInformation();
listCreationInfo.set_title(listName);
listCreationInfo.set_templateType(SP.ListTemplateType.genericList);
var myNewList = hostcontext.get_web().get_lists().add(listCreationInfo);
var dfd = $.Deferred();
context.load(myNewList);
context.executeQueryAsync(function () {
var listCreated = true;
console.log("[" + listName + "]" + " added to hostweb");
if (listCreated) dfd.resolve();
}, oApp.onFail
);
return dfd.promise();
};
I also wrote about creating certain types of columns on your list at my blog. Feel free to check that out here: http://bayerlein.se/how-to-create-host-web-lists-with-certain-columns-in-your-sharepoint-add-in-the-nice-way/

getting full URI + extra #segment in Apache logs

I would like to track users clicks on my website.
For that purpose, I would like to take advantage, if possible, of my Apache log system, which already tracks many things.
The idea would be, putting inside my source page "source.html" a link to "target.html" in the following way:
<a href='target_url.html' OnClick ='window.location="target_url.html#key"'>my mink which i want to track...</a>
with a well chosen key (typically, source url + link id + ...)
If the Apache log system could store the full path "target.html#key" whenever a user follows the link, it would be great, but as it is now, my Apache log system removes the last segment, and only stores the path "target.html".
Any idea on this issue ?
Many thanks by advance,
r.
URL segments are not passed to the server, their implementation is completely up to the client side (the browser). URL segment will never appear in logs, not will it back send to back-end scripts.