The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

URL Parameter for Blame

Jake Swart
May 7, 2015

From the default interface in Atlassian's Stash, you have to click the Blame button to bring up the "Blame-view" for a particular git commit.

Is there a url param in Stash to quickly view a committed file within the "Blame-view"?

For example, I want to use something similar to the following in a script:

https://example.com:1234/dir/browse/$filename?blame=true

I did a quick search on Atlassian's documentation and the internet, but came up empty handed. Any help is greatly appreciated.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2015

Hi Jake,

I believe you can try to use the REST API in order to retrieve that information:

https://example.com:1234/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse

One of the parameters you can use in the example above is "blame". If present, the blame will be returned for the file, among other things.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

Jake Swart
May 21, 2015

I tried the rest API and it does give me the JSON for my request. However, I want to be able to open up the file in a browser with the blame interface displayed, rather than having to click on the blame button. Just displaying the JSON doesn't make it easier for my users to see the commit history of a file.

TAGS
AUG Leaders

Atlassian Community Events