First of all thanks Andreas for such nice plugin.
After some hours of trying I made working using Script Runner for getting a metadata ("mykey") from given project ("RISK")
Just want to share it with you this short snippet to save your time, I hope it helps :)
import com.atlassian.jira.ComponentManager import com.atlassian.plugin.osgi.container.OsgiContainerManager import com.atlassian.jira.project.Project import com.atlassian.jira.component.ComponentAccessor Project project = ComponentAccessor.getProjectManager().getProjectObjByKey("RISK"); OsgiContainerManager osgiManager = ComponentManager.getInstance().getComponentInstanceOfType(OsgiContainerManager.class) String x = osgiManager.getServiceTracker("com.osoboo.jira.metadata.MetadataService").getService().getMetadataValue(project, "mykey")
Hey there Community! My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they can help ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events