Forums

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

Applying post functions on CSV import

Brian Fending
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!
November 12, 2012

I'm trying to apply a post function when importing Jira projects from CSV. The data appear to be well-formed, and everything imports. The post functions are set on the Create transition. I've tried applying both before and after each original issue is created (these are subtasks, btw). What am I missing here?

1 answer

1 accepted

1 vote
Answer accepted
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.
November 12, 2012

I think what you're missing is that post-functions don't run during import. The workflow is pretty much bypassed for CSV import.

Whatever you need to run during import, I'm afraid you probably need to run it after import. What you could do is hack the workflow slightly - have a new status of "imported", which has no transitions going into it, and transitions out to where you need. Put your post functions on those transitions from "imported". Do the import and then use bulk-edit to push the new issues through the workflow, and hence post-function.

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.
November 12, 2012

Oops, I forgot - you'll need an extra column in your CSV with the same value for every line of data - map it to the "status" field when importing, so that you don't get "new" issues, you end up with "imported" for the status of all of them.

Suggest an answer

Log in or Sign up to answer