I am new to Jelly. I am getting an error in my script:
Could not run script.
Extra Information: [hide]
The issue is being updated in the database, and the comment can be seen.
File does not get attached.
Inserted date is a custom datetime field. It does not get updated either. What is going wrong?
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib"> <!-- Add your own Jelly XML here For documentation on the JIRA tag library see: http://www.atlassian.com/software/jira/docs/latest/jelly.html --> <jira:CreateIssue project-key="PRJP" assignee="PRJadmin" summary="Example Summary 8:40" description="This is for the template" reporter="Neeraj" duplicateSummary="ignore" issueKeyVar="key"/> <jira:AddComment issue-key="${key}" comment="A comment on ${key}"/> <jira:AttachFile issue-key="${key}" filepath="D:\web-testing.txt" option="override"/> <jira:AddCustomFieldValue name="Inserted_date" issue-key="${key}" value="07/Aug/13 9:01 PM"/> </JiraJelly>
Yes, as called out on the documentation for this element, https://confluence.atlassian.com/display/JIRA/Jelly+Tags#JellyTags-jira%3AAttachFile
key is a required attribute that points to the issue key to add the attachment to.
Yeah, silly it is different than addComment, which uses issue-key for the same purpose.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.