Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to arrange the order of versions on a board that has data from multiple projects?

Brian R
September 8, 2016

For example, I have a board, and it displays tickets from Project Fun and tickets with a specific label from Project Cool. In the version column, versions from Project Fun and Cool are displayed. It seems that they are displayed in alphabetical order of the project ID, meaning Cool versions are shown first...but I want the Fun versions at the top...

 

...assuming this isn't possible because...JIRA...but let me know.

1 answer

1 accepted

1 vote
Answer accepted
Tarun Sapra
Community Champion
July 20, 2016

I would suggest to use Script Runner in the post function to fetch the user from the role and then use script to update custom field value with the username

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.roles.ProjectRoleManager
import com.atlassian.jira.user.ApplicationUsers
def projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager)
  
def projectRoleId = 10500  // ID of Automatic Watcher project role
def role = projectRoleManager.getProjectRole(projectRoleId)
def actors = projectRoleManager.getProjectRoleActors(role, issue.projectObject)
def usersInRole = actors.getApplicationUsers();

Now update the custom field value as discussed many times in the forumn - https://answers.atlassian.com/questions/211505

Suggest an answer

Log in or Sign up to answer