Module: RoboPigeon::Dsl::Helpers::Jira
- Included in:
- RoboPigeon::Dsl::Helpers
- Defined in:
- lib/robopigeon/jira/helper_dsl.rb
Instance Method Summary collapse
- #jira_last_created_ticket ⇒ Object
- #jira_last_created_ticket_link ⇒ Object
- #jira_last_created_ticket_slack_link ⇒ Object
- #jira_slack_link(issue_id) ⇒ Object
Instance Method Details
#jira_last_created_ticket ⇒ Object
5 6 7 |
# File 'lib/robopigeon/jira/helper_dsl.rb', line 5 def jira_last_created_ticket RoboPigeon::Jira::Client.last_created_ticket end |
#jira_last_created_ticket_link ⇒ Object
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 |
#jira_last_created_ticket_slack_link ⇒ Object
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 |
#jira_slack_link(issue_id) ⇒ Object
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 |