Forums

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

I want to create one batch file in JIRA

Samreen Banu March 22, 2021

Hi,

I want to run one result file under JIRA so thought of batch file concept, but i am no able to get the proper answer or plugin.

I have installed CLI for JIRA, with that how i can create any file and run and get the results.

1 answer

1 accepted

0 votes
Answer accepted
Deleted user March 23, 2021

Hi @Samreen Banu ,

For better understanding, can you please briefly elaborate on your use-case. Also, share an example if you have one for this issue. It helps us to understand better so that we can help you with the requirement.

Let us know what is the file type and its content.

Also, let us know what are the answers, CLI actions that you are looking for.

Please refer to the below page for CLI actions that you can run with Jira:
https://bobswift.atlassian.net/wiki/spaces/JCLI/pages/6684682/Examples

With our app, Jira Command Line Interface (CLI) you can work with Jira issues and perform some actions on them. It helps you to automate things and provides results easily.

We have opened a support ticket, SUPPORT-6325 to better track your request. However, we couldn't add you as a reporter. Please sign up using this link signup-here and share the user name/id. We'll then add you as the reporter and confirm.

Thanks,
Raja

Samreen Banu March 25, 2021

Hi,

this below command i used it to create issue under so and so project:

"ZJIRACLISUB-1" is project name according to my understanding, but it is throwing an error that it is not recognizing "ZJIRACLISUB-1" project name though project name is correct in jira as well as in CLI command.

--action createIssue --parent "ZJIRACLISUB-1" --project "%parent_project%" --type "Sub-task" --summary "subtask2: %parent_summary%" --priority "%parent_priority%"

Please guide me to create project, create an issue from ACLI for jira.

Deleted user March 25, 2021

Hi @Samreen Banu,

Here are the CLI actions for your requirement.

1. You can create a project with the below CLI action command.

--action createProject --project "JCLIPR" --lead "developer" --continue

 Here, you need to provide the Project name, key, or id to the parameter --project.

Also, need to provide the Project lead user id to the parameter --lead.

2. To Create an issue for a project, you need to run the below CLI action:


--action createIssue --project "JCLIPR" --type "task" --summary "sample"

 3. The CLI action which you have tried:

--action createIssue --parent "ZJIRACLISUB-1" --project "%parent_project%" --type "Sub-task" --summary "subtask2: %parent_summary%" --priority "%parent_priority%"

"ZJIRACLISUB-1" is not the project name, but it is the issue key that is generated in the project: ZJIRACLISUB (if you have created it already).

If you have the above issue created in the project: ZJIRACLISUB, then with the below CLI action command, you can create a Sub-task for the same. We are referring to the parent issue (ZJIRACLISUB-1) and with parameter --parent, and --project is to give the project key or you can give %parent_project%, --type is to specify the issue type, --summary here is, setting the parent issue summary along with text subtask2: and finally the --priority is setting the same priority of its parent issue priority. With all the options, it will create a new Sub-task in the project: ZJIRACLISUB.

Please access the support ticket: SUPPORT-6325 from our portal for further discussion on this issue. 

Thanks,
Raja

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events