Hi,
I have a specific requirement, where we want to do some processing (on the issue) behind the scene once a file is attached to the issue.
I am trying to achieve this through scriptrunner plugin. I am able to catch the event once the file is attached. I am also able to fetch that particular attached file in my script but I am not able to find the issue key for the issue where that file is attached. Unless, i have the issue key, I can't change the issue fields in my script.
Please help on how this can be achieved. Note that i am using Jira Service Desk Cloud version.
Regards,
Zeeshan Malik
Please try the getKey() method.
def myIssue = event.issue
def myIssueKey = myIssue.getKey()
Something like this should work if you are fetching from an event.
If it is from a workflow, they a simple issue.key should normally return your issue key.
Regards.
Apparently for Jira cloud, you should be able to use issue.key as suggested here: https://scriptrunner-docs.connect.adaptavist.com/jiracloud/script-listeners.html#_issue_created
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can we get the issue on "Attachment created" Event on script listener (script runner cloud version) as there is no "event" keyword defined! all i can find are following variables
baseUrl
logger
attachment
timestamp
webhookEvent (type: String in our case the value is attachment_created)
regards,
Sheeraz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, can someone help on this? This is Urgent?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.