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")
The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...
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