The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi.
I need to add the sprint name to the summary. But Id doesn't work.
def cField = customFieldManager.getCustomFieldObject("customfield_10004")
def sprint = issue.getCustomFieldValue(cField)
issue.summary = issue.summary + " - Sprint PM - " + sprint
The code doesn't haver sintaxis error But when a ticket is created the summare have a bad format like this:
TEST - Sprint PM - [com.atlassian.greenhopper.service.sprint.Sprint@5a2a0cc9[id=4,rapidViewId=2,state=FUTURE,name=Sprint2,startDate=<null>,endDate=<null>,completeDate=<null>,sequence=4,goal=<null>]]
How I can get theonly the sprint name?
thanks a lot.
Hi @Nic Brough _Adaptavist_
thanks for your reply.
When I change sprint to sprint.getName()
I see the following error.
Stactic type checking - Cannot find matching method.
java.lang.Object#getName(). Please check if the declared type is right and if the method exists.
posible solution....
Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events