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

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
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

155 views 0 3
Read article

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