Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add a comment to JIRA parent ticket when clicking a link from email automation

Mark Carlo Molato
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 27, 2022

Hi Team,

I'm currently creating a JIRA automation on boarding process and one of my requirements is to generate a comment to JIRA parent ticket after clicking a link from the created email automation. 

Please see the attachment/image below, I'm aware that my script is not complete because I really don't know what to add to be able to generate a comment.

JIRAAutomation.PNG

 

For example, the manager click the link "O365 E1 License" it should generate a comment "Approved O365 E1 license" from the JIRA parent ticket.

Please let me know if this is possible under JIRA automation. Thanks!

1 answer

0 votes
Tom Lister
Community Champion
December 28, 2022

Hi @Mark Carlo Molato 

You won't be able to detect an issue link being used.

I would recommend looking at the automation web hook triggers. You can reform your URL to call the web hook and pass in the issue id but this is not a simple view by the user so maybe not what you need.

Or try Scriptrunner behaviours

https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?tab=overview&hosting=cloud

You can create a behaviour that runs when the issue is loaded. That can set a hidden field value to indicate first load.
Automation can detect the hidden field being set and perform more complex updates including linked/parent issues

Mark Carlo Molato
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2022

Hi @Tom Lister , thank you for your response. I'll try to look into the Scriptrunner behavior for now. Hopefully I can able to replicate it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events