Is there a way to copy the name of the project category the project of the issue belongs to into a special custom field wihtin a post function?
You can use script runner plugin to fetch the value and then update the custom field
ProjectCategory getProjectCategoryForProject(Project project)
https://developer.atlassian.com/static/javadoc/jira/latest/reference/com/atlassian/jira/project/ProjectManager.html
Thanks. I tried that, but I get always the same error:
image2016-8-5 16:34:44.png
Have you used script runner / groovy before?
You need to import the classes, the snippet which I shared with you is from the docs and thus you need to create an instance of the class ProjectCategory and then update the custom field.
Yes I used sript runner and added a groovy scripted field, but I didn't import any classes.
So I guess I first have to figure that out, right?
It looks like you're new here. Sign in or register to get started.