It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create custom post function in jira

Syed Salman Jul 18, 2018

Hi,

 

I am new jira user, I have a script written in groovy, how can I attached it in jira and use it as a post function.

 

Regards

Salman

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev [cPrime] Community Leader Jul 18, 2018

Hello,

Open your workflow and find the required transition. Then go to the post function tab and push the Add Post Function button. Then choose the Script Post-Function [ScriptRunner] post function. Then choose the Custom script post-function option and add your script.

Syed Salman Jul 19, 2018

Post_function.pngThanks, but I am unable to find the Script Post-Function  option, do I need to install application [ScriptRunner] ?

Alexey Matveev [cPrime] Community Leader Jul 19, 2018

Yes, you need to install the ScriptRunner plugin first

1 vote
Yogesh Mude Jul 18, 2018

HI @Syed Salman

Actually, you have not yet mentioned which JIra (Server/cloud) are you using, For this first, you need to Edit the workflow on which you want to apply this Post Function.

For JIra server:

1. Admin --> Issues --> Workflow --> select the workflow and edit in diagram mode 

2. select and click on transition on which you want to apply the post function ..select post function, click on Add Post Function --> script post function --> custom script and then add the script and then publish your workflow.

https://confluence.atlassian.com/adminjiraserver/advanced-workflow-configuration-938847443.html#Advancedworkflowconfiguration-essentialpostfunctionsEssentialpostfunctions

For JIra Cloud:

  1. Select the Jira icon Jira settings > Issues.
  2. Click Workflows and then Edit for the relevant workflow.
  3. In diagram mode, click Post Function.

When you click Add Post Function, you can choose from the available script post function and add the script.

https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html

Syed Salman Jul 19, 2018

Thanks for the detail reply, I am using jira server 7.9, I am unable to find the Script Post-Function  option, do I need to install application [ScriptRunner] ?

Yogesh Mude Jul 19, 2018

Yes, as @Alexey Matveev [cPrime] mentioned you need to install Script Runner first then only the script post function option would be available and you can use it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

316 views 0 9
Read article

Community Events

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

Events near you