Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Get the repository and branch names from the development panel.


I am trying to get the repository and branch names from the development panel. I got this code from another post which is trying to accomplish a similar thing:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.plugin.devstatus.api.DevStatusSummaryService
import com.atlassian.jira.user.ApplicationUser
import com.onresolve.scriptrunner.runner.customisers.WithPlugin

def ccm = ComponentAccessor.getComponentClassManager()
def service = ccm.newInstance("com.atlassian.jira.plugin.devstatus.impl.DefaultDevStatusSummaryService")
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

def issue = ComponentAccessor.getIssueManager().getIssueObject("Test-1")
def details = service.getDetailData(, "stash", "pullrequest", currentUser).right().get().getDetail()



But, this 2 imports aren't supported anymore.

import com.atlassian.jira.plugin.devstatus.api.DevStatusSummaryService and


Searching for this, seens like devstatus have been discontinued and that is why this code isn't working anymore.

Does anyone know a way for me to get the repository and branch names from an issue in Script Runner? My goal is the create an custom field named "Repository" and another named "Branch" in which i will put the repository and branch names, so i can more easily access this information from Jira.


Sorry for any mistakes in the vocabulary, English isn't my first language.

1 answer

Hi @Mauricio Garcia Valli Do you got any lead on this we are trying to do the same. Kindly let me know if you got any suggestions. Thanks 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events