I need the Jelly script to create issues using custom fields

HI There,

I was trying to create the jelly script to import the issues in JIRA4.4.4 . in folowiing format. Please note that my project already have custom fields created i need to input data in it. I did follow the docs by atlassian but couldnt figure out much in this {

<jira:AddCustomFieldValue id="customfield_10000" value="field value"/>
<jira:AddCustomFieldValue name="Environment Select list" value="Windows XP"/>
Can some on ehelp me to understand what are above filed and since i lready have my customfields and their value exists , how can i use it in below example}

The script i am runing is below:

<jira:CreateIssue project-key="MFL" issueType="Bug" priority="3. Major" component="Design Link" versions="test" reporter="morety" summary="holes in the mesh on a specific model" created="2009-11-26 00:00:00" description="test description" Enviroment="Platform: Windows XP" issueKeyVar="keyvar"
<jira:AddCustomFieldValue name="Documentation Link" value="link://http:google.com"/> <jira:AddCustomFieldValue name="Issue Frequency" value="Always"/>

<jira:AddCustomFieldValue name="Platform" value="Windows XP x64,Windows 7 x64"/>

<jira:AddCustomFieldValue name="Build Number" value="Version: Not 2011Build: 09476-001"/>

<jira:AddCustomFieldValue name="Issue Source" value="QA"/>

<jira:AssignIssue key="${keyvar}" assignee="xyz" />

I hit some random error for which i couldnt find any help so far.

I would really appriciate if some can help me on this.

Thank You

Sachin

2 answers

I am getting following error "java.io.IOException: expected '=', got 'j'

0 vote
Renjith Pillai Community Champion May 14, 2012

Use the id instead of the name. (name says deprecated)

Renjith Pillai Community Champion May 14, 2012
  • Also priority seems to be wrong. Give only "Major"
  • You dont have a closing '>' tag for jira:CreateIssue
  • And I couldn't see the tag </jira:CreateIssue>

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,210 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot