You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
-------------------------------------------
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