Uploading issues through CLI

I am trying to upload CSV file through CLI Client actions. The scenario is we get dump every day , there are various issues that has already been created. So in the action I caanot use createIssue and update issue issue also won't work because I cannot match it everytime I upload the CSV. Please suggest something.

If I am going to upload all those same issues next time then it creates a new issue. I just want to update the issue if it already exists in JIRA

3 answers

1 accepted

Use *createIssue* on those lines that represent new issues (that don't have an id) and *updateIssue* on lines that already have an id. Unfortunately, you will need the issue key as the id is not currently supported. If that is not possible in your scenario, open an issue for *updateIssue* to support an *id* paramater as an alternative to the *issue* parameter.

Hi Bob, As you said we need the JIRA ID to update issue, but when I get a new CSV I have no way to get the JIRA ID.

Well you need some way to figure out the JIRA key for a line that represents a duplicat of an issue you already have. Otherwise, you have to create new.

Does the CSV file not contain a reference to an existing issue if it had been created previously? If not, how do you associate the data with an existing issue? Perhaps show a few line of the csv to help us understand what data you have.

Hi Bob,

()

If I am going to upload all those same issues next time then it creates a new issue. I just want to update the issue if it already exists in JIRA

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

167 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you