Skip to content

Instance Method for Jira Issue Link to UI #464

@jakeoeding

Description

@jakeoeding

Is your feature request related to a problem? Please describe.
I'd like to request adding an instance method to the JIRA::Resource::Issue class that builds a link to the browse page for the issue. The current link attributes you can access on an Issue instance (e.g. issue.self) return /api/ routes which aren't useful in the context of providing a link to an end user. I find myself recreating logic to construct links to the /browse/ endpoint in nearly every application I maintain that creates JIRA issues, and believe it could be useful for others as well.

Describe the solution you'd like
I believe a simple instance method that does something along the lines of

def browse_link
  [client.options[:site], "browse", key].join("/")
end

would suffice. The real implementation would probably need some error handling in the case of a nil key.

Describe alternatives you've considered
I've tried to find other ways to create links to the UI from the available properties provided by the Issue class and have been unsuccessful.

Additional context
If there's support for this idea, I'm happy submit a PR myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew features that do not exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions