I want to get an issue's 'request.channel.type' property to judge which way created issue with jira api, I know the jira rest api can help me do it, and I tried use following way to do it in scriptrunner
this way only be useful for issue that I have created, but I need to judge it when I get issue create event, so anyone can help me ? Thanks!
Hello @Mack Chen
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def issue = ComponentAccessor.getIssueManager().getIssueObject("TEST-1")
IssuePropertyService issuePropertyService = ComponentAccessor.getComponentOfType(IssuePropertyService.class)
def entityProperty = issuePropertyService.getProperty(user, issue.id, "request.channel.type").getEntityProperty()
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
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