Skip to content

Commit

Permalink
Merge pull request #41 from ljay79/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
ljay79 authored Oct 17, 2017
2 parents 5dcf609 + d9a1d1c commit 85eeb2e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* - use google auth with token based Jira RESTful API vs. cleartext password
*/

var BUILD = 0190;
var BUILD = 0191;
var LOGGING = true;

/**
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,24 @@ Current existing limitations by this Add-On:
* To comply with Atlassians policy, it does internally fetch only *50* records per page which can result in quite some delay when dealing with too many issues.
* Listing of Jira users and groups (within dialogs) is limited to **100** user/group records
* "Time Sheet" is limited to report max **1.000** worklogs per Jira issue (max **1.000** issues) per Time sheet

# Known Issues
## `Could not connect to Jira Server![401]`
In case someone comes across here with a same or similar issue, i could actually reproduce that error and identify one use case where this would happen.

### Solution
This applies to **JIRA Cloud** using **G-Suite synced** account. It might not apply to self hosted Jira instances.

Note that if you are logging in via a synced Google account, it is **NOT** the google password you are supposed to use. Instead you should go to your user profile and look up your username and set a password.

For site admin functions, RSS feeds, REST API access, or WebDAV uploads you'll need to have an Atlassian Cloud password (separate to your Google Apps password.) Which applies to this Add-On as well.

#### Instructions
Log out from your Jira portal.
Go to https://id.atlassian.com and click on "Can't log in?" - just below the log on form.
On the next page enter your email address (which would be your Google Email) and press "Send recovery link".

Your will get an email from Atlassian where you please click the provided link at "Reset your password".
Now on the Atlassian page where you can set/change your Atlassian (and not Google) password, enter a new password for your Atlassian account, not to mix up with your Google account.

Of course it makes no sense that this information is not available on the REST API documentation page, since it is quite crucial to get it working.
3 changes: 2 additions & 1 deletion jiraApi.gs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ var restMethods = {
'myFilters' : {method: '/filter/favourite', queryparams: {includeFavourites: 'false'}},

'userSearch' : {method: '/user/search', queryparams: {startAt:0, maxResults: 1000, username:'%'}},
'groupSearch' : {method: '/groups/picker', queryparams: {maxResults: 1000, query: ''}}
'groupSearch' : {method: '/groups/picker', queryparams: {maxResults: 1000, query: ''}},
'field' : {method: '/field'}
}
};

Expand Down

0 comments on commit 85eeb2e

Please sign in to comment.