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'

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

  • 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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

158 views 5 9
Read article

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