Skip to content

Commit c05907a

Browse files
committed
v 0.21.0
Features - copy Jira Issue remote url to clipboard Bug Fixes - minor fixes
1 parent f77ba44 commit c05907a

7 files changed

+55
-19
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.21.0
2+
3+
### Features
4+
5+
- copy Jira Issue remote url to clipboard
6+
7+
### Bug Fixes
8+
9+
- minor fixes
10+
111
## 0.20.0
212

313
### Features

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Change Jira issue status
1919
- Change Jira issue assignee
2020
- Add comment to Jira issue
21-
- Copy to clipboard Jira Key+Summary
21+
- Copy to clipboard Jira issue Key+Summary
22+
- Copy to clipboard Jira issue remote url
2223
- Checkout or create git branch
2324
- [Set current working project](#working-project)
2425
- [Set current working issue](#working-issue)
@@ -39,7 +40,10 @@
3940
**jira-plugin** is an open source extension.<br>While being free and open source, if you find it useful, please consider supporting it by donating.<br>**Thanks!**
4041

4142
[[Become a backer](https://opencollective.com/jira-plugin#backers)]
42-
<a href="https://opencollective.com/jira-plugin#backers" target="_blank"><img src="https://opencollective.com/jira-plugin/backers.svg?width=890"></a>
43+
<a href="https://opencollective.com/jira-plugin#backers" target="_blank"><img src="https://opencollective.com/jira-plugin/backers.svg?width=890"></a><br><br>
44+
Your logo will show up here with a link to your website.
45+
<br><br>
46+
[<img src="https://blog.wan-ifra.org/sites/default/files/imagecache/default_col_4/field_blog_entry_image/dumont_logo4_0.jpg" width="160">](https://www.dumont.de/)
4347

4448
## Installation
4549

@@ -184,8 +188,10 @@ values:<br>
184188
With this command you can change an issue assignee.<br><br>
185189
- **Change issue status**<br>
186190
With this command you can change an issue status.<br><br>
187-
- **Copy Jira Key+Summary**<br>
188-
With this command you can copy to clipboard Jira Key+Summary.<br><br>
191+
- **Copy Jira issue Key+Summary**<br>
192+
With this command you can copy to clipboard Jira issue Key+Summary.<br><br>
193+
- **Copy Jira issue remote url**<br>
194+
With this command you can copy to clipboard Jira issue remote url.<br><br>
189195
- **Checkout or create git branch**<br>
190196
Whit this command you can manage git from explorer.<br><br>
191197

@@ -217,8 +223,8 @@ If you want to file a bug, contribute some code or improve documentation, read u
217223

218224
## [Contributors](https://github.com/gioboa/jira-plugin/graphs/contributors)
219225

220-
| [<img src="https://avatars2.githubusercontent.com/u/35845425?v=4" width="50px;" /><br /><sub><b>Giorgio Boa</b></sub>](https://github.com/gioboa) | [<img src="https://avatars1.githubusercontent.com/u/4991612?v=4" width="50px;" /><br /><sub><b>jumpkick</b></sub>](https://github.com/jumpkick)<br /> | [<img src="https://avatars3.githubusercontent.com/u/25907722?v=4" width="50px;" /><br /><sub><b>tiago-pullup</b></sub>](https://github.com/tiago-pullup)<br /> | [<img src="https://avatars1.githubusercontent.com/u/29225316?v=4" width="50px;" /><br /><sub><b>MXM-7</b></sub>](https://github.com/MXM-7)<br /> | [<img src="https://avatars0.githubusercontent.com/u/40208329?v=4" width="50px;" /><br /><sub><b>Diogo Paschoal</b></sub>](https://github.com/diogogeru)<br /> | [<img src="https://avatars3.githubusercontent.com/u/7826229?s=400&v=4" width="50px;" /><br /><sub><b>Ian Mackie</b></sub>](https://github.com/Kaffiend)<br /> | [<img src="https://avatars3.githubusercontent.com/u/2177810?s=400&v=4" width="50px;" /><br/><sub><b>Roman Ostolosh</b></sub>](https://github.com/knicefire)<br/> | [<img src="https://avatars1.githubusercontent.com/u/19175915?s=400&v=4" width="50px;" /><br/><sub><b>Keith Turley</b></sub>](https://github.com/keithturley)<br/> |
221-
| :-----------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
226+
| [<img src="https://avatars2.githubusercontent.com/u/35845425?v=4" width="50px;" /><br /><sub><b>Giorgio Boa</b></sub>](https://github.com/gioboa) | [<img src="https://avatars1.githubusercontent.com/u/4991612?v=4" width="50px;" /><br /><sub><b>jumpkick</b></sub>](https://github.com/jumpkick)<br /> | [<img src="https://avatars3.githubusercontent.com/u/25907722?v=4" width="50px;" /><br /><sub><b>tiago-pullup</b></sub>](https://github.com/tiago-pullup)<br /> | [<img src="https://avatars1.githubusercontent.com/u/29225316?v=4" width="50px;" /><br /><sub><b>MXM-7</b></sub>](https://github.com/MXM-7)<br /> | [<img src="https://avatars0.githubusercontent.com/u/40208329?v=4" width="50px;" /><br /><sub><b>Diogo Paschoal</b></sub>](https://github.com/diogogeru)<br /> | [<img src="https://avatars3.githubusercontent.com/u/7826229?s=400&v=4" width="50px;" /><br /><sub><b>Ian Mackie</b></sub>](https://github.com/Kaffiend)<br /> | [<img src="https://avatars3.githubusercontent.com/u/2177810?s=400&v=4" width="50px;" /><br/><sub><b>Roman Ostolosh</b></sub>](https://github.com/knicefire)<br/> | [<img src="https://avatars1.githubusercontent.com/u/19175915?s=400&v=4" width="50px;" /><br/><sub><b>Keith Turley</b></sub>](https://github.com/keithturley)<br/> | [<img src="https://avatars3.githubusercontent.com/u/4190560?s=400&v=4" width="50px;" /><br/><sub><b>jjongman</b></sub>](https://github.com/jjongman)<br/> |
227+
| :-----------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
222228

223229

224230
## License

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jira-plugin",
33
"displayName": "Jira Plugin",
44
"description": "Manage your on-premises/cloud Jira in vscode",
5-
"version": "0.20.0",
5+
"version": "0.21.0",
66
"publisher": "gioboa",
77
"icon": "images/icons/icon.png",
88
"galleryBanner": {
@@ -280,8 +280,13 @@
280280
"category": "Jira-plugin"
281281
},
282282
{
283-
"command": "jira-plugin.copyJiraSummary",
284-
"title": "Copy Jira Key+Summary",
283+
"command": "jira-plugin.copyIssueKeySummary",
284+
"title": "Copy Jira issue Key+Summary",
285+
"category": "Jira-plugin"
286+
},
287+
{
288+
"command": "jira-plugin.copyIssueRemoteUrl",
289+
"title": "Copy Jira issue remote url",
285290
"category": "Jira-plugin"
286291
},
287292
{
@@ -398,7 +403,12 @@
398403
"when": "view == issuesExplorer && viewItem == IssueItem"
399404
},
400405
{
401-
"command": "jira-plugin.copyJiraSummary",
406+
"command": "jira-plugin.copyIssueKeySummary",
407+
"group": "1_issue",
408+
"when": "view == issuesExplorer && viewItem == IssueItem"
409+
},
410+
{
411+
"command": "jira-plugin.copyIssueRemoteUrl",
402412
"group": "1_issue",
403413
"when": "view == issuesExplorer && viewItem == IssueItem"
404414
},

src/commands/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export default {
5959
registerCommand('jira-plugin.issueAddComment', (issue: IssueItem) => issueAddComment(issue, false)),
6060
registerCommand('jira-plugin.issueAddInternalComment', (issue: IssueItem) => issueAddComment(issue, true)),
6161
registerCommand('jira-plugin.openIssue', openIssue),
62-
registerCommand('jira-plugin.copyJiraSummary', utilities.copyToClipboard),
62+
registerCommand('jira-plugin.copyIssueKeySummary', utilities.copyIssueKeySummary),
63+
registerCommand('jira-plugin.copyIssueRemoteUrl', utilities.copyIssueRemoteUrl),
6364

6465
// auxilary commands
6566
registerCommand('jira-plugin.openGitHubRepo', openGitHubRepo),

src/services/status-bar.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default class StatusBarService {
100100
if (configuration.get(CONFIG.TRACKING_TIME_MODE) === TRACKING_TIME_MODE.HYBRID) {
101101
// If we are coming back from an away period catch up our logging time
102102
// If the away time was > awayTimeout, workingIssue.awayTime will be -1, so we won't log the away time.
103-
if (store.state.workingIssue.awayTime && store.state.workingIssue.awayTime > 0) {
103+
if (store.state.workingIssue.awayTime && store.state.workingIssue.awayTime > 0 && !store.state.workingIssue.stopped) {
104104
store.state.workingIssue.trackingTime += store.state.workingIssue.awayTime;
105105
}
106106
// Clear the away timer

src/services/utilities.service.ts

+12-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,18 @@ export default class UtilitiesService {
5959
}
6060
}
6161

62-
copyToClipboard(issue: IssueItem) {
63-
if (issue) {
64-
vscode.env.clipboard.writeText(issue.label || '');
62+
copyIssueKeySummary(issueItem: IssueItem) {
63+
if (issueItem) {
64+
vscode.env.clipboard.writeText(issueItem.label || '');
65+
vscode.window.showInformationMessage('Jira Plugin - Copied to clipboard');
66+
} else {
67+
logger.printErrorMessageInOutputAndShowAlert('Use this command from Jira Plugin EXPLORER');
68+
}
69+
}
70+
71+
copyIssueRemoteUrl(issueItem: IssueItem) {
72+
if (issueItem) {
73+
vscode.env.clipboard.writeText(`${configuration.get(CONFIG.BASE_URL)}/browse/${issueItem.issue.key}` || '');
6574
vscode.window.showInformationMessage('Jira Plugin - Copied to clipboard');
6675
} else {
6776
logger.printErrorMessageInOutputAndShowAlert('Use this command from Jira Plugin EXPLORER');

0 commit comments

Comments
 (0)