Module: RoboPigeon::Dsl::Helpers::Jira

Included in:
RoboPigeon::Dsl::Helpers
Defined in:
lib/robopigeon/jira/helper_dsl.rb

Instance Method Summary collapse

Instance Method Details

#jira_last_created_ticketObject



5
6
7
# File 'lib/robopigeon/jira/helper_dsl.rb', line 5

def jira_last_created_ticket
  RoboPigeon::Jira::Client.last_created_ticket
end


10
11
12
13
14
# File 'lib/robopigeon/jira/helper_dsl.rb', line 10

def jira_last_created_ticket_link
  issue_id = RoboPigeon::Jira::Client.last_created_ticket
  jira_url = RoboPigeon::Jira::Client.api_url
  "#{jira_url}/browse/#{issue_id}"
end


17
18
19
20
21
# File 'lib/robopigeon/jira/helper_dsl.rb', line 17

def jira_last_created_ticket_slack_link
  issue_id = RoboPigeon::Jira::Client.last_created_ticket
  jira_url = RoboPigeon::Jira::Client.api_url
  "<#{jira_url}/browse/#{issue_id}|#{issue_id}>"
end


31
32
33
34
# File 'lib/robopigeon/jira/helper_dsl.rb', line 31

def jira_slack_link(issue_id)
  jira_url = RoboPigeon::Jira::Client.api_url
  "<#{issue_id}|#{jira_url}/browse/#{issue_id}>"
end