Forums

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

Are post function not imported with workflow

Karim Belhadj
Contributor
March 8, 2019

hello team

 

i have a test instance , so i export a workflow as a jira workflow bundle 

and i import it to the production instance (without third part (addon)) , however the post function (that assign issue to current user) does not work in production ?

What's the problem ?

it can be that status do not exist or what ?

Regards

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2019

It's worth understanding what a post-function is first.  A workflow does not contain a post-function, it points to one.  If you read the raw XML of a workflow and look at a transition, you'll find that the xml says "feed the following parameters to a class called <something>"

When you export and import a workflow, that pointer is carried over, but the code that is being called is not, as it's not part of the workflow, it's a module in the code.

So, my guess is that your production system does not have the code that provides the post-function module that your workflow is calling.  You will need to install the add-on that provides it.

Karim Belhadj
Contributor
March 9, 2019

@Nic Brough -Adaptavist-  I understand that , but I tell you that I’m not using addon , I use only native post function , condition and workflow , so to be more clear I like to know exactly if I use condition , validator , post function (native ) , and I export workflow bundle and import it in another instance , it will work fine , or I have to create more one time my condition , validator and post function .

 

best regards 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2019

Your imported workflows will work fine if you have added the Apps that provide the functions that your workflow calls.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events