How to update description fields in jira4r gem

66 Views Asked by At

I'm able to update the custom-field of a jira-ticket by using the following code.

a = Jira4R::V2::RemoteFieldValue.new
a.id = "customfield_10000"
a.values = 'blah'

b = Jira4R::V2::RemoteFieldValue.new
b.id = "customfield_10022"
b.values = 'test'

ticket = jira.getIssue('blah-105')
jira.updateIssue(ticket.key, [a, b])

However, I am unable to update the description field using the same method.

Help would be appreciated.

1

There are 1 best solutions below

0
On BEST ANSWER

finally found simple solution.

a = Jira4R::V2::RemoteFieldValue.new
a.id = "description" #id of description field
a.values = 'custom value'
ticket = jira.getIssue('TST-164')
jira.updateIssue(ticket.key, [a])