How to write JIRA CLI Script in Groovy?

I am using Groovy for writing a script. I want to use CLI script using Groovey. So how we can write script for CLI. Please give me the step to write a script in Groovy to run CLI commands. And how we execote that script in JIRA?

4 answers

1 vote

This is the same question as https://answers.atlassian.com/questions/192736/how-to-write-a-script-in-cli which has more information.

However, it's still very unclear what you're trying to do. You keep asking about the CLI and Groovy but don't explain any of the structure of what you're trying to do with them. It's difficult to help you when you keep talking about two separate things you thing you want to use together when you have not told us how you want to use them. I'd suggest that you forget the CLI and Groovy for now and tell us what the end goal is - then we can actually start to tell you things like "do X in the CLI and you can then do Y with Groovy" or "If you do X in Groovy, then you'll be able to use the CLI to automate Y".

without eaxct requiremet no one is going to help here!!

only requiremts seeing here is CLI and Groovy!!

i am not sure why you people only preferring CLI and groovy, is there any specific reason???

Hi Bob,

Actually ,we want to Import External database in the jira by using CLI Plugin.So we have to write Script for this.How can we do this ?

Hi Bob,

Actually ,we want to Import External database in the jira by using CLI Plugin.So we have to write Script for this.How can we do this ?

p.s. I'm not Bob.

What does "import external database" mean? What are you importing from the database? Issues? Is it another bug tracker?

Why are you insisting on the CLI when Jira has importers that may well be a lot more easy?

I am Bob :), but I don't have a clue what you are trying to do so it is hard to recommend anything specific. The mechanics of using groovy and CLI are in this question: https://answers.atlassian.com/questions/178123/groovy-script-question

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...

197 views 1 18
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