Rally SDK 2 - Given a story A and a story B, how can I say that B is a successor of A thanks to Javascript API? - sdk

I'm using the Rally SDK 2 to manipulate user stories from Javascript in a "Custom HTML" application.
I can query a story and retrieve its attributes.
I can update some of the attributes, like the Name of the Iteration for instance.
How can I add a successor to my story?
If I understand well, I should edit the "/HierarchicalRequirement/.../Successors" of my story, but I don't understand how to do that.
Would someone have an example, please?

Unfortunately, I don't have an exact example you can use, but the successors (or predecessors) are 'collections'. As such, you need to 'add' to the collection. There is an explanation of some of this here: https://docs.ca.com/ca-agile-central/saas/apps/2.1/doc/#!/guide/collections_in_v2
Built into the model for the artefact are routines to handle all the details. If you want more details, then you can download the sdk-debug.js file from the Rally server. To get to it, open up the developer tools in your browser and have a look where a custom app would get the sdk.js file from. The debug variant is formatted for humans to read and a very useful source of how to do things at the low levels. The definition of Rally.data.wsapi.ModelFactory has some good tips.
One of the recommendations I make to people starting out writing custom apps, is to use the developer tools in the browser to watch the network traffic that the Rally UI makes - and then work backwards to code.

Related

Search API on Youtube TV

I need to build a system that uses an API that searches for Youtube content, with functionality exactly as described by https://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters, but where the results are shown in youtube/tv (i.e. accessible and browsable just using cursor keys, select and back, as used in https://www.youtube.com/tv#/browse)
Having searched extensively, I cannot find a solution. Does one exist?
Thanks,
Andrew
If I were to interpret your question broadly, it would be "is there an open source version of youtube.com/tv that I could repurpose". The answer to that is no. You're going to have to do some heavy lifting yourself.
If you want a starting off point, you could take a look at the JavaScript source for http://stb-web-app.appspot.com/static/index.html, either just directly from within a browser's development tools or from the SVN repo. That example doesn't give you exactly what you're looking for, but it does illustrate how to detect specific key presses and display YouTube feeds in a "set top box" environment.

Subscribe to eNewsletter

How do I write code in c# for the below Task on
The BDD below- tests to prove that login and register links appear on site
After i used Specflow I have a skeleton code being generated, but then how do I add code? Any Nunit? Story Q, CAN generate code to complete a green test pass?
As a Member
I want to be able to subscribe to eNewsletters
So that I am regularly informed about developments in the superannuation industry
Acceptance Criteria
Background: I am a Super website Member. Subscribing to enewsletters requires the member to log into Member online section (=MOL)
WHEN I am on the eNewsletters page
THEN text will be displayed to explain how to subscribe to eNewsletters
WHEN I am on the eNewsletters page
THEN there will be an option to log into MOL and to register for MOL
Not trying to be rude, but do you have any experience/knowledge about Specflow/BDD? Because, looking at the question, it seems like you don't. Therefore I think it would benefit you much much more if you would look into that first, before asking someone to write a test for you (what you're basicly doing here). There is enough documentation and examples available from which you can get the answer to this question. Follow a short tutorial on YouTube or something like that to get you started.
Specflow allows you to edit an xxx.feature file containing your specification in Given, when and then statements. When you save that file it generates an xxx.feature.cs file just like WinForms generates xxx.designer.cs files.
Should you use "Navigate to" (F12) in VS in the feature file and it will give you the option to copy a template method for you to implement in your own code. These can simply be added to any file in your project that is public and marked with the [Binding] Attribute.
Further details can be found here http://www.specflow.org/specflownew/ProjectSetupGuide.html

Making a firefox/chrome extension from 0

i have a website, its to exchange links, files... to say it quickly it's my 'version' of twitter+megaupload,
Well, users add links all the time and so on, but i would like user be able to syinch his bookmarks from the browser to the ones he has at his profile of mywebsite,
Where should i look into?
Basically i need to be able to:
- Acces bookmarks file (1)
- being able to send the urls to my service ( 2 )
- maybe adding the login feature (in the future)
I was google'ing about this for ages few weeks a go and i kind of give up, because i'm ok with PHP and JS, but with this plugin languages i'm very lost. So i decided posting here, wich always brings positive answers
(1) - > I don't even know where to start
(2) -> i was thinking to have a website.com/auto_import_no_confirm.php?url=[URL] and put it in a for each.
how many different languages and extension files do i have to work with? I really need any kind of tip with point (1)
feel like?
-edit-
Just found This -> https://developer.mozilla.org/En/Code_snippets/Bookmarks
wich really looks like i need, but where do i place this code?
thanks!
Might not be a bad question, but there are too many subtopics raised to answer that. (And there is too much tagspam as well. Break up your question into PHP- and Javascript-specific tasks, when you have devised the general application scheme.)
But to get started, download similar Firefox extensions (.xpi) and unzip them to inspect the general structure. You'll find examplary code for bookmark handling and invoking remote APIs pretty quickly. And basically you only need Javascript for the extension itself. (It sounds like your extension does not need much UI.)
And there are many tutorials on designing Firefox addons: http://roachfiend.com/archives/2004/12/08/how-to-create-firefox-extensions/ or http://www.google.com/search?q=firefox+develop+an+xpi
The good news first, you won't need much more than javascript if you just want to access bookmarks and send them to a server, neither on firefox nor on chrome.
But still you'll have to make yourself familiar with the apis of the browsers and learn how to develop extensions.
However, both Mozilla and Google provide all necessary information on their developer sites.
For Chrome, this is a good place to start, you'll find the api for bookmark access here.
The Corresponding site for Firefox can be found here, with information on bookmark access here.

Using Google as a substitute of a web interface for an existing client server application

I am in researh mood and one of the tasks I have in my to do list is:
"Finalize the techonlogy to use for creating a web interface to my existing Client Server application".
My application is very rich and full of features. It makes sense it is has rich client UI, because it is a productivity tool. Many shortcuts, many things without any click. So I am not looking for a full replacement.
My app has some features that would be good to be used also from a web interface.
Some of them:
1) multi user calendar (every item I see in the calendar is linked to something in my app, for example "today 11:00: recall customer 'Dummy ltd'". This is not a simple memo, it is also linked to the customer), so i can see my and others tasks.
2) Confirm some task (yes I did this!)
3) see some report (some graph or some tabular report)
Of course this are not simple outputs, they can contain some logic (for example some calendar items must be readonly, some others can be edited).
This said, I was considering whether doing all this with Google would be a reasonable choice. In this way I don't have to install anything, simply interfacing with google would be enough. I can map my application users to one (or more) google users and use all the google features (calendar, charts, tasks, ....).
May you comment on this? Which are the good/bad points.
Some good points I can forsee:
1) no need to design any UI, just connect to an existing powerful and userfriendly system
2) the applicatino will automatically be compatible with google ("is it possible to export on google?" is a typical question I recieve)
3) google already provides the interface for the points I wrote above (tasks, calendar, charts, ...)
4) no deployment issues. No server hosting. just need to configure the users with some wizard.
Some bad points:
1) Which is the long term support? Will the Google APIs change every month or some of them will be stable for years?
2) How much may I push? How much is it possible to customize? I mean can I write some logic like "this item is readonly", "this item is not"? (afaik in google I can share a calendar with other people, in different ways, but there is no way to make only a part of it readonly. Of course I could do this with a trick, like having 2 calendars, one readonly and the other not. But is it possible to change the default google behaviour like for example in calendar case?)
3) of course I am limited, writing "from scratch" allows me to do everything.
Final note: my app is a Delphi client/server application. The communication will be done from an application server that will interact with the google apis.
As I understand, the API are stable, for example the Calendar API documentation says
Google periodically updates the
Calendar Data API in order to deliver
new features and to repair defects
discovered in previous versions. In
most cases, these changes will be
transparent to API developers.
However, occasionally we need to make
changes that require developers to
modify their existing applications.
So as long as the service exists I would expect only small changes. Services however can disappear from one day to the other (see Google Wave for example) so I would check the requirements of an 'exit strategy', at least a way to export the most critical information.
My application is very rich and full
of features. It makes sense it is has
rich client UI, because it is a
productivity tool
It sounds like Morfik might be a good choice for creating web interface for your application. Once you like it, you might even make the whole application in it. ;-)

How to integrate Sharepoint Community Features

I have a web site for showing different reports like these examples
http://contoso.com/report.aspx?id=1
http://contoso.com/report.aspx?id=2
In each report page I want to embed a Sharepoint control that will allow me to:
Start a discussion for each report
Add Comment/response to the existing thread for the report
Rate the report on a scale of 1 to 5 and provide comments
As is implicit, a Sharepoint forum will be the backing store and can be accessed directly as well.
Is this possible in Sharepoint 2007? How difficult if so?
How can I implement such a scenario?
To best answer your question, I need to know what a report actually is. I assume a report is a Word document.
You probably need to do some custom coding for this to work well. One approach might be:
Create a Document Library.
Create a Discussion Forum.
Add a column to the Document library for storing the rating on a scale of 1-5.
Create a WebPart that displays the document and it's metadata including your score.
Have an event receiver or Workflow on the Document Library that creates a new top level thread each time a report it added with the title of the document as the subject.
Have code in your webpart that queries for all items in the discussion forum where the thread starting title is the name of the document, and display the thread.
It would probably require some C# and WebPart development skills to accomplish this task. Not something a beginner could do.

Resources