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 I create a post function when an issue is created

Michael Aug 31, 2016

I looked at the documentation for post functions, but I can't seem to find out how to create a post function that fires when the issue is created.

I am using a plugin called Sub Task Manage and I want a sub task created when an issue is created.

How do I create a post function for issue created?

2 answers

1 accepted

3 votes
Answer accepted
Nic Brough [Adaptavist] Community Leader Aug 31, 2016

I'm not sure if your question is about using post-functions or literally adding them to the system.  Post functions are chunks of code you run during a transition.  Some are built-in, and add-ons can provide more.  The workflow basically has a library of them that you could use.

To add a function to the library, you'd find or write an add-on and install it via the add-on manager.

To use one, you edit the workflow, find the grey "start" circle, and click on the transition out of it to highlight it and bring up the info box, and that box will contain a link to "post-functions" which you can then add to, pulling the ones you need from the library


1 vote
Stefan Arnold Sep 01, 2016

When you use the text mode of the workflow when editting you cant see the "Create-Transition".

To see this you have to switch to diagram mode.  There you can choose the Create-Transition and on the right you can see the buttons for post-functions and validators. I made a screenshot how this looks:jira_createPostfunction.png

Nic Brough [Adaptavist] Community Leader Sep 01, 2016

That's not true. 

In text mode, click on the first step to see the details for it.  In the display above, you'll see a list of all the transitions into and out of the step

Create is one of those.

It's not displayed in the main list of steps, true, but you don't need diagram mode to get to it.

Stefan Arnold Sep 01, 2016

Okay, learned something new wink thanks!!

Never clicked on the step name before^^

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 Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

6,230 views 22 30
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