mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
BUG-1811: Improved the Jira destination "sub" icons, by showing the issue types.
This commit is contained in:
parent
fcd18225ef
commit
f88672b5f6
8 changed files with 423 additions and 54 deletions
|
@ -118,13 +118,9 @@ namespace GreenshotJiraPlugin.Forms {
|
|||
|
||||
public async Task UploadAsync(IBinaryContainer attachment) {
|
||||
_config.LastUsedJira = _selectedIssue.Key;
|
||||
using (var memoryStream = new MemoryStream())
|
||||
{
|
||||
attachment.WriteToStream(memoryStream);
|
||||
memoryStream.Seek(0, SeekOrigin.Begin);
|
||||
await _jiraConnector.AttachAsync(_selectedIssue.Key, memoryStream, jiraFilenameBox.Text, attachment.ContentType);
|
||||
}
|
||||
|
||||
attachment.Filename = jiraFilenameBox.Text;
|
||||
await _jiraConnector.AttachAsync(_selectedIssue.Key, attachment);
|
||||
|
||||
if (!string.IsNullOrEmpty(jiraCommentBox.Text)) {
|
||||
await _jiraConnector.AddCommentAsync(_selectedIssue.Key, jiraCommentBox.Text);
|
||||
}
|
||||
|
@ -141,8 +137,7 @@ namespace GreenshotJiraPlugin.Forms {
|
|||
IList<Issue> issues = null;
|
||||
try
|
||||
{
|
||||
var searchResult = await _jiraConnector.SearchAsync(filter.Jql, fields: new [] { "summary", "reporter", "assignee", "created" });
|
||||
issues = searchResult.Issues;
|
||||
issues = await _jiraConnector.SearchAsync(filter);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue