Update jira.lua

This commit is contained in:
streetturtle 2021-04-21 10:58:31 -04:00 committed by GitHub
parent 9e42fec6b1
commit fb334f27fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -112,7 +112,8 @@ local function worker(user_args)
local args = user_args or {} local args = user_args or {}
local icon = args.icon or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg' local icon = args.icon or
HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg'
local host = args.host or show_warning('Jira host is unknown') local host = args.host or show_warning('Jira host is unknown')
local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved' local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved'
local timeout = args.timeout or 600 local timeout = args.timeout or 600
@ -222,7 +223,8 @@ local function worker(user_args)
widget = wibox.widget.textbox widget = wibox.widget.textbox
}, },
{ {
markup = "<span foreground='#888888'>" .. issue.fields.assignee.displayName .. "</span>", markup = "<span foreground='#888888'>"
.. issue.fields.assignee.displayName .. "</span>",
widget = wibox.widget.textbox widget = wibox.widget.textbox
}, },
spacing = 8, spacing = 8,
@ -288,10 +290,7 @@ local function worker(user_args)
end) end)
) )
) )
watch( watch(string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), timeout, update_widget, jira_widget)
'cat /home/pmakhov/.config/JetBrains/IntelliJIdea2020.2/scratches/scratch_27.json',
--string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')),
timeout, update_widget, jira_widget)
return jira_widget return jira_widget
end end