I'd like to be able to send a link to a specific planning board, showing a specific project, context and parameters (e.g. Version: 1.234 or Project Overview). Is it possible to generate a link to send over email on the page?
If it's possible but not easy, I don't mind writing a Greasemonkey plugin to do the job.
Not essential, but handy, would be the same request for any of the other boards.
It appears that it is possible to do it yourself! As I mentioned in the question, I don't mind a little bit of manual work, so here goes.
Take a base URL of your Jira instance and add "/secure/GotoBoard.jspa" to the end:
http://jira.intranet.xyz/secure/GotoBoard.jspa
Locate your project's ID - there are a number of ways to do this. I hit "Create Issue" and pick an issue type then take the 'pid' value from the URL. For example, if you have CreateIssue.jspa?pid=12345, then your project ID is '12345'. Add this to the end of the URL with the following string:
?selectedProjectId=12345
Then you'll need the Board ID - you can find that by hovering over the 2nd-level navigation (e.g. Planning Board > Version > Sprint 6) on the GH boards and looking for a URL like javascript:Boards.changeView('11111'). Add that number here.
&selectedBoardId=11111
Now add your context on the end here. Use "Default" if you don't want a specific context.
&contextName=Default
Set this one to true if you want 'Only My Issues'.
&assignedToMe=false
This one seems to control the middle drop-down in the 2nd-level GH navigation - the values are derived from the drop-down URLs (e.g. AssigneeBoard, ProjectBoard, ComponentBoard). Looks like it works in harmony with the 'selectedBoardId' field above.
&navInfo=VersionBoard
I haven't used this yet, but it might help with linking to charts.
&chartType=gh.chart.bissueburndown
Then concatenate all of the above:
http://jira.intranet.xyz/secure/GotoBoard.jspa?selectedProjectId=12345&selectedBoardId=11111&contextName=Default&assignedToMe=false&navInfo=VersionBoard
Sorted!
If anyone is able to expand further on this, please comment back here! If you're really stuck, you could probably check out the source for GotoBoard.
try this bookmarklet:
drag drop this to your bookmark bar
javascript:(function(){var%20pid=jQuery('%23project-avatar').attr('src').match(/pid=(\d+)/)[1];var%20go=function(pid){var%20bid=jQuery('%23gh-bc-options%20.gh-selected%20a').attr('href').match(/changeView\(.(\d+)/)[1];window.location.href='/secure/VersionBoard.jspa%3FselectedBoardId='+bid+'%26selectedProjectId='+pid;};var%20a=jQuery('%23gh-bc-boards%20a');if(a.length===1){Boards.getDropdownOptions('gh-bc','BoardOptions');}window.setTimeout(function(){go(pid);},500);})();
source is here:
https://gist.github.com/saml/4731524
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
This is one of the big limitations with GreenHopper today, you can not have the Context in the URL.
We are addressing this on the Rapid Board which is in Labs today.
Thanks Mark,
Nicholas Muldoon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.