mutableIssue.getGenericValue is deprecated in 5.0, but what should I use instead?
For example:
GenericValue changedIssue = updatedIssue.getGenericValue();
IssueUpdateBean issueUpdateBean = new IssueUpdateBean(changedIssue, originalIssue, EventType.ISSUE_UPDATED_ID, currentUser);
AND
updatedIssue.store();
Thanks!
no need to use the generic issue use the following constructer to instanciate IssueUpdateBean class
IssueUpdateBean(Issue changedIssue, Issue originalIssue, Long eventTypeId,com.atlassian.crowd.embedded.api.User user)
Cheers,
Rambanam
A MutableIssue is an Issue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool, it works:)
Can you tell me how to get Issue from MutableIssue object? 'cause I have all methods with MutableIssue arguments..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, got it, thanx
But how can I make store() for MutableIssue? (The method store() from the type OfBizValueWrapper is deprecated)
mutableIssue.store();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use IssueService to update an issue instead of using the store method.
http://docs.atlassian.com/jira/latest/com/atlassian/jira/bc/issue/IssueService.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you want to update issue use the following method
issueManager.updateIssue(authenticationContext.getLoggedInUser(),mutIssue,EventDispatchOption.ISSUE_UPDATED,Boolean.FALSE);
if you want to set current workflow step to issue use mutableIssue.setWorkflowId(Long workflowId)
and use update method to update issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Depends on what you're trying to do to the issue...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For example adding the comment to the issue.
I thought its not important. I mean - if the getGenericValue is deprecated, so I have to:
1) use some method for getting genericValue, that is not deprecated (but I can't find such method)
OR
2) find methods that I want to use with this issue, but those who will not use the GenericValue as an argument.
For ex.: issueUpdateBean(...), PluginUtils.updateIssue(GenericValue, Issue, String), PluginUtils.setCurrentWorkflowStep(GenericValue, String, String), and so on).
Can you help me with those methods please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.