Skip to content

Commit

Permalink
#222: Give ability to add a labels to the jira tickets
Browse files Browse the repository at this point in the history
Fixed #222
  • Loading branch information
dgroup committed Sep 21, 2020
1 parent 51968c6 commit 3a27b0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/lazylead/system/jira.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a27b0d

Please sign in to comment.