Polarion Creating a WorkItem via polarion bibliothek python - polarion

I'm trying to create work items in Polarion via bibliothek polarion python, however I can't figure out how I can use setcustomfields and create a WorkItem with a custom field. How can I do this?
wenn i try to do this
wi.setCustomField("string_field", "Test:")
i get Error
key string_field is not allowed for this workitem

Related

Creating a Message-Hub Bridge for IBM Cloud Object Storage

I'm trying to create a "Bridge" from Message Hub to S3 Object Storage, copying information from the credentials that I created but I always get an error that says "Please trying refreshing the page, or logging back into Bluemix."
I have already created an access policy for these credentials and the Bucket I want to use as destination.
Also tried with private and public end-points.
I wasn't able to found documentation that explains how to accomplish this. Nothing seems to work.
Thanks!
Apologies, this is an internal error caused by the S3 Object Storage bridges capability being made available in the UI but not in the backend.
An update to the Message Hub service will be made this week to correct this.

Unable to generate cloud endpoint class

Dear fellow programmers,
I am very new to programming and i am following the tutorial on using app engine backend tutorial. However i face some problem along the way.
I have Setup App Engine Backend Application Project, created a CheckIn entity class.
After which, i follow the instruction to create a new class with the name CheckInEndPoint.java
I copy the code from the snippet over to the Class.
When i try to Generate Cloud Endpoint Class, i faced an error message.
Error Generating API
This is not a JDO/JPA entity class.
Kindly seek your advice on how to troubleshoot it.
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial#ecdp
The instructions as provided by Google are confusing. What the instructions intended to say is after creating CheckIn.java, right-click on the CheckIn.java file and select Google->Generate Cloud Endpoint Class. This will then automatically create the CheckInEndpoint.java file.
Read through the entire "Entity Design Class Pattern" paragraph as given in the link you provided. You'll recognise that their instructions are ambiguous and is actually meant to be carried out from point 6.
Try adding this annotation to your CheckIn class:
import javax.jdo.annotations.PersistenceCapable;
#PersistenceCapable
public class CheckIn ...
This way it will find it as a JDO entity class and it will generate your CheckInEndPoint class.
I had the same error, I have first renamed the class CheckInEndPoint I've created manually to avoid any kind of conflicts. After that I have right clicked on
CheckIn class -> Google ->Generate Cloud Endpoint Class.
If you get some dependencies errors, please try check whether all the classes like ApiKeysAndIds.java, UserAccount.java are in the package.

Cannot delete entity with broken id from datastore

I managed to create an entity in the datastore with the following key: 'mydomainname.se-w3wp--ap-mydomainname.se--v-v2.0--l-webengine4.dll--a-%2F.pipeiisipm9d20c68a-5b24-4161-aa53-a8dd9e44f002--h-C%3Ainetpubempapppoolssmydomainname.semydomainname.se.config--w---m-0--t-20'
It shows up when I list the entities in my application, but I cant find it in the datastore viewer so I can't delete it. Any suggestions on how to get rid of it?
I'm using Python.
I can't tell if you're using python or java.
With python you can use the Remote API shell to query your entity and delete it.
Java's got a remote API as well, but you'll have to write a bit more code to create the client that will run your query and delete the entity.

View memcache items in GAE

Trying to view items in memcache in GAE.
https://code.google.com/p/googleappengine/issues/detail?id=7245
http://googleappengine.blogspot.com/2012/08/app-engine-171-released.html
These links say "Namespaces in the Memcache Viewer - The Admin Console now supports retrieving memcache values that are stored in a non-default namespace."
But I still couldn't the view item trying different combinations.
tried, ns.key, ns_key, key (where ns is namespace, key is key set in the program).
I use Development SDK 1.7.6, with GO runtime. What should I enter it in the search space as seen in the picture, or what is the best way?
This is not currently implemented in the development server (but is available in the production admin console as pointer by Jesse in the comment).
You should open a new feature request in dev_appserver2 projects.
If you feel like contributing it yourself, you could easily add support by patching:
memcache_viewer.html to add a new <input> field to capture the namespace.
memcache_viewer.py to add namespace arg to memcache.get call

EWS: Access shared calendars

I am trying to use Exchange Web Services to access calendar data, but I can't seem to figure out how to access calendars which have been shared by other users when it is not their default calendar. Assuming another user in my company created a shared calendar and shared it with me, I can't even find the calendar folder, let alone get the items within it.
The answers can be in terms of the EWS Managed API (version 1.0 or 1.1), the service objects directly, or even just the XML body of the SOAP message that needs to be sent to the server. I just need some kind of starting point. Any help would be greatly appreciated.
Here's how I managed to do it:
Dim _cal As New Microsoft.Exchange.WebServices.Data.FolderId(Microsoft.Exchange.WebServices.Data.WellKnownFolderName.Calendar, New Microsoft.Exchange.WebServices.Data.Mailbox(_otherAddress))
Dim _calendarView As New Microsoft.Exchange.WebServices.Data.CalendarView(_startTime.Date, _endTime.Date.AddDays(1))
For Each appointmentItem As Microsoft.Exchange.WebServices.Data.Appointment In _
service.FindAppointments( _
_cal, _
_calendarView)
Next
Note: this only works for the default calendar as that is all I needed for my requirements
Edit: For non-default calendars, have you looked into the ExchangeService.FindFolders method, I have not tried but this might not require root inbox access.
This is rather complicated, because you need the FolderId of the folder in question. In addition to access to the calendar folder you'll need read access to the root folder of the mailbox. This allows you to execute a FindFolder operation to retrieve that id.
I know it's a couple of years after the original post, but just to help people with similar problems, look at this.
It uses the EWS API's WellKnownFolderName.PublicFoldersRoot to access the public folder and browses to the requested subfolder using FolderId's.
If you need to do this in Java, here's and answer that could help. Office365 API - Admin accessing another users/room's calendar events. It's got a working sample of code. Until MS gets the Azure V2.0 REST API working, this is the way to do it.

Resources