Add a comment post function
Hi There is no System Admin role in list of Comment author
Comments (11)
-
repo owner -
reporter Yes,I mean project role Administrators There is nothing in validator "Users in a field are/aren't in a project role"
See attachment
-
reporter - attached roles.png
-
repo owner Hi Fatima, I can't reproduce your problem. Can we have a screen-share by Skype or any other video-conference service? My Skype user is fidel100r. I will be available from now until 13:00 UTC.
-
repo owner Hi Fatima, any update on this? I'm available for an Skype screen-share.
-
reporter Hi Fidel.Pls look at 1-st screenshot of post function from your add-on.There is no administrator role(look at 2 screenshot where the Project roles of Jira are listed and Administartor role persist there).Just add Administrator role to your list
-
reporter - attached post-function.png
- attached project role.png
-
repo owner Fatima,
the problem is that you are looking for project roles in a dropdown list that contains user fields. In JIRA the author of a comment can't be a project role, but a particular user. Comments can also be anonymous, but never can be created by a community of users, like a project role or a group. That's the reason why you only can user select fields in parameter Author.
This is not a bug, but characteristic of JIRA.
In your particular JIRA instance you have a User Picker custom field called "System Administrator", and this fact seems to have led you wrong.
-
reporter You can add feature like default member of Project role as you used in another post-function,that will be very useful.And in my case how do you suggest me to solve the issue?
-
repo owner You can do in two steps:
1) Use "Copy a parsed text to a field" post-function with the following configuration:
- Target field: Ephemeral string 1
- Parsing mode: advanced
- Text to be parsed: defaultUserForRole("Administrators")
2) Use post-function "Add a comment" selecting Ephemeral string 1 at parameter Author.
The final configuration will look similar to this:
You will need to use version "2.2.12_beta_5 in order to be able to select Ephemeral string 1 in parameter Author.
As a workaround, in case you can't use a beta version in your production environment, you can create an auxiliary User Picker custom field and use it instead of "Ephemeral string 1.
-
repo owner - changed status to resolved
Hi Fatima, I close the issue. Please, reopen it if the solution is not valid for you.
- Log in to comment
Hi Fatima,
Do you mean in "Add a comment" post-function?
Please, check whether the role is available in another functionality of the plugin, like "Users in a field are/aren't in a project role" condition.
Please, get the list of project roles in your instance: Administration > System > Project Roles. Please, attach a screenshot showing the project roles.
By default, JIRA provides a project role called Administrators, but not System Admin.