Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Modifie issue Workflow post-function

Sergi Sacristan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2019

Hi everybody,

 

I need help you,

I'm trying to program a post function in one of  workflow transaction

(post-function)

Only want modify some fields in the issue but I don't know why don't save the changes.

Jira no produce any error.

My versión of Jira is JIRA Service Desk  3.15.3

I paste code here

 

Captura.PNG Captura2.PNG

-------------------------------------------

import org.apache.log4j.Logger
import org.apache.log4j.Level
import com.atlassian.jira.event.ProjectUpdatedEvent
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.event.issue.IssueEvent
import com.atlassian.jira.issue.security.IssueSecurityLevelManager
import com.atlassian.jira.issue.security.IssueSecuritySchemeManager
import com.atlassian.jira.component.ComponentAccessor // Import para gestionar componentes
def log = Logger.getLogger("com.acme.CreateSubtask")
log.setLevel(Level.DEBUG)
log.debug(issue);
def issueManager = ComponentAccessor.getIssueManager()
def issueObject = issueManager.getIssueObject(issue.key)
issueObject.setDescription( "New Description")
issueObject.store();
log.debug(issue.key);

 

----------------------------------

Regards

Thank you

Sergi Sacristán Martínez

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Service Management Events