Forums

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

I need the Jelly script to create issues using custom fields

Sachin Ambulkar May 10, 2012

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

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2012

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

Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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>
0 votes
Sachin Ambulkar May 13, 2012

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

Suggest an answer

Log in or Sign up to answer