It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Modifie issue Workflow post-function

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.PNGCaptura2.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 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Posted in Jira Service Desk

How has Jira Service Desk increased productivity in your org?

Hi Jira Service Desk community, Atlassian is on a mission to unleash the potential of all teams, and we know that tools are just one piece of that puzzle. With Jira Service Desk, we have productiv...

168 views 0 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you