Automatically update Description using scriptrunner

Pavan April 6, 2021

Hello Team,

I am creating structures automatically using scriptrunner.
Now I want Generated Structure URL should be added to Description.
How we can update Description field in jira.
Please suggest solution for above issue.

 

Thanks in Advance

 

1 answer

0 votes
Juan Manuel Ibarra
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.
April 6, 2021

Hi Pavan in this link you can see examples for the update of description field 

 

Since Description is a standar field you can use:

 

IssueInputParameters issueInputParameters = issueService.newIssueInputParameters(); 
issueInputParameters
.setProjectId(12345L)
.setIssueTypeId("2");
.setSummary("This is a summary");
.setReporterId("joeuser");
.setAssigneeId("otheruser");
.setDescription("I am a description");
.setEnvironment("I am an environment");
.setStatusId("2");
.setPriorityId("2");
.setResolutionId("2");
.setSecurityLevelId(10000L);
.setFixVersionIds(10000L, 10001L);

 

This is used in issue creation, update, and transitions to specify new or updated values. 

Pavan April 8, 2021

Thanks @Juan Manuel Ibarra , yes i tried this way out, but in my scenio this thing didn't work

Suggest an answer

Log in or Sign up to answer