-
Notifications
You must be signed in to change notification settings - Fork 411
Issues
Robert Brodie edited this page May 28, 2024
·
5 revisions
issue = client.Issue.build
labels = %w[label1 label2]
issue.save({
fields: {
summary: 'blarg from in example.rb',
project: { key: 'TEST' },
issuetype: { id: '10004' },
labels: labels,
priority: { id: '3' }
}
})
issue.fetch
puts issue
issue = client.Issue.find('TEST-2')
issue.delete
issue = client.Issue.find('TEST-1')
puts issue
issues = client.Issue.all
issues.each do |issue|
puts "#{issue.id} - #{issue.summary}"
end
project = client.Project.find('TEST')
project.issues.each do |issue|
puts "#{issue.key} - #{issue.summary}"
end
issue_fields = client.Field.map_fields
puts issue_fields
issue = client.Issue.find('TEST-2')
issue.save({
fields: {
summary: "Updated summary"
}})
puts issue