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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,637,740
Community Members
 
Community Events
196
Community Groups

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
AUG Leaders

Atlassian Community Events