Skip to content

Commit

Permalink
updated readme as per #10;
Browse files Browse the repository at this point in the history
enhanced deploy script with a new package;
changed Jira Hostname label for clarity;
added Options link when connection fails;
  • Loading branch information
alfeugds committed May 13, 2018
1 parent c345643 commit 5a31748
Show file tree
Hide file tree
Showing 9 changed files with 286 additions and 93 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ typings/

# dotenv environment variables file
.env
oauth.txt

# package output
chrome-extension.zip
chrome-extension.zip
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ You can also omit the Jira # and time spent and add it later.
* Supports SAML and Basic Authentication with Jira app token.

## Getting Started
Before using it, you need to open the **Options** page and configure the Jira URL, which needs to point to the API services. For example: `http://<Your Jira URL>/rest/api/2/search`.
Before using it, you need to do two things:
- Make sure you are logged in to your Jira instance in Chrome. The extension leverages the existing authentication cookie when it is present in the browser;
- Open the **Options** page and configure the **Jira Hostname**, which needs to point to the API services*. For example: **`https://jira.atlassian.com`**.

After that, click **Test Connection** to make sure the extension can reach Jira correctly. If so, click **Save** and you are good to go.

If by only providing the Jira URL the connection fails, you'll need to configure the Basic Authentication with your user and password. Also, depending on the authentication method of the Jira API, you'll also need to provide an app token. If that's the case, please consult your IT department to get one.
If by only providing the Jira Hostname the connection fails, you'll need to configure the **Basic Authentication** with your user and password. Also, depending on the authentication method of the Jira API, you'll also need to provide an app token. If that's the case, please consult your IT department to get one.

*_The extension uses the **Jira Hostname** to build the URL and API calls to the Jira instance like this: **`https://jira.atlassian.com/`**`rest/api/2/search`._

## Some Images

Expand Down
2 changes: 1 addition & 1 deletion chrome-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Jira Worklog Tool",
"version": "0.2.6",
"version": "0.3.0",
"author": "alfeugds",
"description": "This extension allows the user to log the work in Jira easily.",
"homepage_url": "https://github.com/alfeugds/jiraworklogtool",
Expand Down
2 changes: 1 addition & 1 deletion chrome-extension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<body>
<div id="container">
<h3>Configure Jira Connection</h3>
<label for="jiraUrl">Jira URL</label>
<label for="jiraUrl">Jira Hostname</label>
<input type="text" id="jiraUrl" />
<br/>
<button id="testConnection">Test Connection</button>
Expand Down
2 changes: 1 addition & 1 deletion chrome-extension/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h2>Total: <span id="totalHours">2h</span></h2>
<div id="status" class="hidden"></div>
</div>
<div class="error_status hidden">
<h2>Please go to <a target="_blank" href="options.html">Options</a> and make sure you are logged in Jira, and the Jira URL is correct.</h2>
<h2>Please go to <a target="_blank" href="options.html">Options</a> and make sure you are logged in Jira, and the Jira Hostname is correct.</h2>
</div>
<div id="loading" class="hidden">
<img class="hidden" src="spinner-small.gif" aria-hidden="true" />
Expand Down
Loading

0 comments on commit 5a31748

Please sign in to comment.