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

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

80 views 0 1
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