diff --git a/lib/lazylead/system/jira.rb b/lib/lazylead/system/jira.rb index 3e9c355..604a0eb 100644 --- a/lib/lazylead/system/jira.rb +++ b/lib/lazylead/system/jira.rb @@ -234,6 +234,16 @@ def remote_links def attachments @issue.attachments end + + def add_label(label) + labels = @issue.labels + labels << label + save!("fields" => { "labels" => labels.uniq }) + end + + def save!(opts) + @issue.save(opts) + end end # The jira issue comments