Forums

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

Post function to assign & notify on creation

Dave Cobb November 4, 2019

I'm trying to enforce a sign-off process which notifies a nominated person once an issue is created.

I've added a post function to an existing workflow that automatically assigns a person as assignee expecting them to be notified once the issue has been created. However, this doesn't appear to work this way.

The person is assigned as the first post function prior to the create event being triggered, which does assign them correctly, JIRA unfortunately doesn't notify them.

Is this a feature/bug of JIRA and is there another way of achieving notification based on specific user?

 

1 answer

0 votes
Alex Koxaras _Relational_
Community Champion
September 12, 2023

Hi @Dave Cobb 

I know what you mean. Unfortunately you can't be sure which post function will run first. The fire event, or the assign issue? I've implemented a bunch of similar solution by:

  • Change the "fire event" of the "on create" transition to Null
  • Add the post function of assignee on the "create" transition
  • Add a self transition on the first status after creation to which I add the "Create issue" event
  • Add a post function of "fast track" the issue to itself, using the newly created transition

Doing the above will make sure that in the first place no event is fired up. You fast transition your issue to the same status and within that new transition you fire the "Issue Create" event, which later will notify the assignee of the issue.

Hope that helps!

Suggest an answer

Log in or Sign up to answer