Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to remove a user as Project Admin for multiple projects using the app Run CLI action for Jira on Datacenter instance.

...

  1. Consider the following example shows a project key, BUMP, that has a role defined as jira-administrators:
    Image Added
  2. Create a csv file(ex: projects.csv) with below parameters:
  3. Place the projects.csv under the respective folder, that is /var/atlassian/application-data/home/cli-plugin.
  4. Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:

  5. Click on Run and below is the required output:

  6. The result of the above action is similar to the following screenshot:


    Code Block
    themeMidnight
    --action run --server http://example.test.stage --password xxxxxxx --user xxxxxxx
    
    --action runFromCsv --file "projects.csv" --common "--action removeProjectRoleActors"
    


    Image Modified

    Click on Run and below is the required output:

    Code Block
    themeMidnight
    Success
    
    
    Run: --action runFromCsv --file "projects.csv" --common "--action addProjectRoleActors"
    
    Run: --project "AAAA" --role "jira-administrators" --userId "Amulya" --category "another" --action removeProjectRoleActors
    'jira-administrators' role updated for project AAAA
    
    Run: --project "BBBB" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors
    'jira-administrators' role updated for project BBBB
    
    Run: --project "BUGA" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors
    'jira-administrators' role updated for project BUGA
    
    Run: --project "BUMP" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors
    'jira-administrators' role updated for project BUMP
    
    Run: --project "CCCC" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors
    'jira-administrators' role updated for project CCCC
    
    Run: --project "EEEE" --role "jira-administrators" --userId "Amulya" --action removeProjectRoleActors
    'jira-administrators' role updated for project EEEE
    
    Run completed successfully. 6 actions were successful from file: /var/atlassian/application-data/home/cli-plugin/projects.csv
    
    Run completed successfully. 1 actions were successful 
    



    The result of the above action is similar to the following screenshot:
    Image Modified


Info