mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Improved Jira code with the latest state of Dapplo.Jira [skip ci]
This commit is contained in:
parent
28358f4a9a
commit
4029e01491
8 changed files with 37 additions and 158 deletions
|
@ -26,7 +26,7 @@ using System.Text.RegularExpressions;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Dapplo.Jira;
|
||||
using Dapplo.Log.Facade;
|
||||
using Dapplo.Log;
|
||||
using GreenshotJiraPlugin.Hooking;
|
||||
|
||||
namespace GreenshotJiraPlugin
|
||||
|
@ -45,6 +45,7 @@ namespace GreenshotJiraPlugin
|
|||
private readonly IList<JiraApi> _jiraInstances = new List<JiraApi>();
|
||||
private readonly IDictionary<string, JiraApi> _projectJiraApiMap = new Dictionary<string, JiraApi>();
|
||||
private readonly int _maxEntries;
|
||||
// TODO: Add issues from issueHistory (JQL -> Where.IssueKey.InIssueHistory())
|
||||
private IDictionary<string, JiraDetails> _recentJiras = new Dictionary<string, JiraDetails>();
|
||||
|
||||
/// <summary>
|
||||
|
@ -144,7 +145,7 @@ namespace GreenshotJiraPlugin
|
|||
JiraApi jiraApi;
|
||||
if (_projectJiraApiMap.TryGetValue(jiraDetails.ProjectKey, out jiraApi))
|
||||
{
|
||||
var issue = await jiraApi.GetIssueAsync(jiraDetails.JiraKey).ConfigureAwait(false);
|
||||
var issue = await jiraApi.Issue.GetAsync(jiraDetails.JiraKey).ConfigureAwait(false);
|
||||
jiraDetails.JiraIssue = issue;
|
||||
}
|
||||
// Send event
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue