youngmon/atlassian-qna huggingface dataset:
Error code: XSRF_FAILURE_NO_TOKEN_IN_PARAMS
Asked by rupakchapa39:

Doesn't create New Plan with:

XSRF token validation failed {#toc-hId--1386673237}
---------------------------------------------------

Unable to access this resource due to a failed XSRF check. Please ensure that a valid XSRF token is provided in the request.

Error code: XSRF_FAILURE_NO_TOKEN_IN_PARAMS


Answers:
author: Daniel Santos
body: Hi [@rupakchapa39](/t5/user/viewprofilepage/user-id/3621589)

To troubleshoot this error better you will need to check the log messages in this file:

* **\<bamboo-home\>/logs/atlassian-bamboo.log**

Please check if there are other messages also associated with this error. It is very common that incomplete proxy settings will cause this effect.  

There is a document covering some of the causes for this error:

* [Internal Server Error When Creating the First Plan - Atlassian Documentation](https://confluence.atlassian.com/bamkb/internal-server-error-when-creating-the-first-plan-590256627.html)

<br />

If the issue is related to the proxy, you will need to make sure it is configuration is correct in **\<bamboo-install\>/conf/server.xml.** An example of this configuration can be found in [Securing Bamboo behind nginx using SSL - Atlassian Documentation](https://confluence.atlassian.com/bamkb/securing-bamboo-behind-nginx-using-ssl-829075298.html) (Configure the Tomcat Connector item).
Can't see users on build plan Permissions
Asked by Juan.Galvez:

On the build plan Permissions page on Bamboo, I can't see the users that were granted permissions. There are a few rows, but the user name fields are blank (I attached a picture below). How can I fix this? Thanks!

![image.png](/t5/image/serverpage/image-id/71405iA7EF5F40F54AB2A6/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Daniel Santos
body: Hello Juan,

I've never seen this problem before and I'll need your help to get some extra info about it.  
Most of the Bamboo issues are associated with a recent configuration or infrastructure change.  

Let me ask you some questions that will allow me to understand the issue better:

* When this problem was noticed for the first time?
* What is the source of your Bamboo users? (LDAP, Jira, Crowd, Bamboo internal, etc)
* Have you changed any user configuration right before this issue occurs? (LDAP config, etc)
* Have you installed any plugin in Bamboo recently?
* Have you restarted Bamboo after this issue?  
  It is possible that a module was disabled for some unknown reason causing this side effect and a restart could solve it.
* Can you please observe the **\<Bamboo_Home\>/logs/atlassian-bamboo.log** content while you reload the plan permissions page to see if any error will be thrown there?
* Is this issue happening to all plans or just to a specific one.

It is quite important that you answer all the questions above and share whatever extra info you think might be relevant to this case. It will help us to plan the next investigation steps.

Thank you!
elasticimages .bashrc exportes variables not available in scripts
Asked by NedH:

We use vault and need to have it's env vars available to all tasks. In the elasticagent instance startup script I add these vars to /home/bamboo/.bashrc but they are not available in commands to any shell scripts. When I ssh into the instance and su to the bamboo user I see the env variables.

----

...

echo 'export VAULT_ADDR=<https://vault.example.net>' \>\> /home/bamboo/.bashrc  
echo 'export VAULT_TOKEN="123456-123456-1234-12345-123456" \>\> /home/bamboo/.bashrc

...

This is not a problem on our remote agents.


Answers:
author: Alexey Chystoprudov
body: Bamboo ignores .bashrc user profile when execute tasks as part of build process. All environment variables should come from task configuration, but not agent environment. It's required for build isolation from environment state.

In your case I'd suggest to keep these properties at file somewhere at agent and then read it during script task execution


author: NedH
body: So, all the scripts we have that needs these env vars will need to source. Not an acceptable solution because security reasons and job isolation for theses variables is not a requirement. This is only an issue on elasticagents, on our remote agents these, and a few others, environment variables are exported before the agent is started so are available to all jobs.
Users access report
Asked by Mohamed Saad Taha:

Dears,

is there any way to create user report about active user in Jira , last access time ,...etc

Iam using copy past to excel, is there any way to do


Answers:
author: Rustem Shiriiazdanov
body: Hi [@Mohamed Saad Taha](/t5/user/viewprofilepage/user-id/4963037)

In cloud, you could try [https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-last-active-dates-get](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-last-active-dates-get?)

This API will return you a JSON in a following format:

{ "data": { "product_access": \[ { "id": "\<string\>", "key": "jira-software", "last_active": "\<string\>" } \], "added_to_org": "\<string\>" }, "links": { "next": "\<string\>" } }

You could later work with this data in Excel or any other tool you prefer.

Regards,

Rustem


author: Aaron Pavez _ServiceRocket_
body: Hi [@Mohamed Saad Taha](/t5/user/viewprofilepage/user-id/4963037)

You can get some of that information using Atlassian access. But there is no last time accessed.

For that, you need a third-party app.

[https://marketplace.atlassian.com/apps/1225092/user-auditor-for-jira?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/1225092/user-auditor-for-jira?hosting=datacenter&tab=overview)

Or something from this list

<https://marketplace.atlassian.com/search?query=user%20audit>

Regards

Aaron

comments: author: Aaron Pavez _ServiceRocket_
body: I just saw you selected DC. The reply I gave was for Cloud.

There is no out-of-the-box report, or dashboard for that. Only from the DB or another app.


author: John Funk
body: Hi Mohamed,

What is it that you are trying to accomplish? And are you using Data Center or Server?

comments: author: Mohamed Saad Taha
body: Iam using datacenter edition and I need this in audit purposes and to remove access for some using who is not using the tool to safe licenses


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

server
How can I change or adapt the standard queries in the Service Portal ?
Asked by R. Wetzel:

The status query "open requests" returns more requests than expected. I would therefore like to adjust the status query accordingly.


Answers:
author: Dave Mathijs
body: Hi [@R. Wetzel](/t5/user/viewprofilepage/user-id/1211911) welcome to the Atlassian Community!

In what way does does "Open Requests" show more results than expected?

How would you like to limit the results?

How many results are you talking about?

Are you part of an Organization where all request from the same organization are shared with all members of this organization?

comments: author: R. Wetzel
body: The status "closed", "deferred" and "resolved" should not be included in the result list.


author: Dave Mathijs
body: This means that the resolution is not set on those statuses.

Please correct your workflows and make sure that every "green" status has a resolution set, either via post function or via a workflow/transition screen.

This can only be done by a Jira/Product Admin.

Afterwards, you'll need to correct "Done" category issues without a resolution as well.


Tags: cloud

jira-service-management

jira-service-management-cloud
Multiple status in JQL
Asked by Raymart Cruz:

How can I create a JQL query to search for multiple statuses in one project?

Here are the sample statuses I want to search using JQL:

* Awaiting for Approval
* Waiting for approval
* Waiting for Approval from Tool Owners

Here's the sample JQL I created, but I received an error:

"Group\[Dropdown\]" = "SME" AND status NOT IN (Awaiting for Approval, "Waiting for approval", "Waiting for Approval from Tool Owners") AND project = TIN

![Screenshot 2024-06-10 at 9.14.14?PM.png](/t5/image/serverpage/image-id/328921i3A5DC3CB2A29B69F/image-size/large?v=v2&px=999 "Screenshot 2024-06-10 at 9.14.14?PM.png")


Answers:
author: Rudy Holtkamp
body: hi [@Raymart Cruz](/t5/user/viewprofilepage/user-id/5014483) ,

You are almost there, just don't use spaces in statuses without quotes:

This should do it for you:

"Group\[Dropdown\]" = "SME" AND status NOT IN (**"Awaiting for Approval"**, "Waiting for approval", "Waiting for Approval from Tool Owners") AND project = TIN


Tags: cloud

jira-service-management

jira-service-management-cloud
How to solve the problem with the error during the move
Asked by Nahapetyan _1:

My task's issutype = Sub-bug. When i move to Sub-task, I get the error as seen in the first screenshot:

![image.png](/t5/image/serverpage/image-id/328925i795B995414478991/image-size/large?v=v2&px=999 "image.png")

But for example, once I move the task In QA sub-task, no error appears.  
![image.png](/t5/image/serverpage/image-id/328926i521AEDD58E9E5413/image-size/large?v=v2&px=999 "image.png")


Answers:
author: YY Brother
body: Hi [@Nahapetyan _1](/t5/user/viewprofilepage/user-id/5379713)

Welcome to our Community.

It seems you've selected an issue type which doesn't exist in the desination project.

Thank,

YY?

comments: author: Nahapetyan _1
body: Hi! This issue type is present in the project settings.


author: YY Brother
body: Please show us the screenshot of the issue type scheme of this project and the screenshot of sub-task and sub-bug.


Tags: jira-service-management

jira-service-management-unknown-hosting-type

unknown-hosting-type
Filtering a webresponse body by date
Asked by Rudy Holtkamp:

Hi,

I've question about Jira automation, particularly filtering data from a webresponse.

I've the following response in a smart value {{webResponse.body}}:

```
{
  "props": [{
    "prop": "AA",
    "planAs": "0"
  },{
    "startDate": "2024-06-10",
    "prop": "BB",
    "planAs": "0"
  }, {
    "startDate": "2024-11-01",
    "prop": "CC",
    "planAs": "0"
  },{
    "prop": "DD",
    "planAs": "0"
  },{
    "startDate": "2023-09-03",
    "prop": "EE",
    "planAs": "0"
  },{
     "startDate": "2024-07-28",
     "prop": "FF",
     "planAs": "0"
  },{
    "startDate": "2024-07-28",
    "prop": "GG",
    "planAs": "0"
  },{
    "startDate": "2023-09-03",
    "prop": "HH",
    "planAs": "0"
  },{
    "startDate": "2023-06-10",
    "prop": "II",
    "planAs": "0"
  },{
    "startDate": "2024-06-11",
    "prop": "JJ",
    "planAs": "0"
  },{
    "startDate": "2024-06-21",
    "prop": "KK",
    "planAs": "0"
  },{
    "startDate": "2024-12-31",
    "prop": "LL",
    "planAs": "0"
  }]
}
```

I want to filter out all props that either don't have a startDate (in this case AA \& DD) or all props that have a startDate before and including today (which is now June 10th 2024, but this is of course variable) which wil result in BB, EE \& II

How can I do this, using smart value conditions or a regex?

By creating a variable props with smart value {{webRespons.body.props}} and using a new variable myProps with smart value {{props.match("\\{.\*?prop=(.\*?), planAs=\\d\\}, ")}}   
I get all the props, but I really need only the ones with a startdate of today or before.


Answers:
author: Kalyan Sattaluri
body: Hello [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802)

If this response is valid JSON which Jira will let us parse,

Then, after your web request call, can you try to do Advanced Branching on smart value {{webResponse.body.props}} and variable =myprops,

You should be able to access {{myprops.startDate}} and do if condition that {{myprops.startDate.jiraDate}} greater than {{now}} then capture your prop in variable?

comments: author: Rudy Holtkamp
body: The problem with using an advanced branching, that it does not wait until it has been executed. So if I try to catch it in a variable in the branch, the rest of the automation rule continues without having the correct value of the variable.


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
to add your customers so they can raise requests, does it comes with a price? If yes please provide
Asked by JOSEPH RAJU:

For a project if we are adding customers, will they be considered as a user and we have to pay them or is there any other standard.


Answers:
author: Pavol Go?al
body: Hello [@JOSEPH RAJU](/t5/user/viewprofilepage/user-id/5516967)

you do not pay for the customers. Based on [pricing policy,](https://www.atlassian.com/software/jira/service-management/pricing) you can add unlimited number of customers, no matter which pricing level you are on.

comments: author: Pavol Go?al
body: Just be careful to differentiate between user and customer. You can check [this thread](https://community.atlassian.com/t5/Jira-Service-Management/Difference-between-Users-and-Customer/qaq-p/2710029) for explanation.


author: John Funk
body: Hi Joseph - Welcome to the Atlassian Community!

No, you can add Customers to Jira Service Management projects at no cost.


Tags: cloud

jira-service-management

jira-service-management-cloud
Can you raise a change request through a JSM project which will link to a centralised project
Asked by Will Dewfield:

The question in better detail - I have a JSM Project that I have created with multiple request types available; i have an issue where instead of wanting to raise multiple change requests per customer due to sometimes we may need to raise a cross customer change which effects all and instead of raising it in each individual customer portal can I link all change requests to an internal project which is used just for change requests but still raised from the JSM? If not does anyone have another idea on how I can get around this! Thanks in advance


Answers:
author: Mohammed Aamer Khan
body: Hi [@Will Dewfield](/t5/user/viewprofilepage/user-id/5484985)  

If my understanding is correct you wants to raise change request from JSM project but want them to be created in their respective/ Client oriented projects.

Answer:- We don't have any option to add any project's change request into any other project


author: John Funk
body: Hi Will - Welcome to the Atlassian Community!

I am not sure that I completely follow. But yes, you could have a single project with multiple requests types, and based on the request type used, you could clone the issue into another project, or create a new issue in the other project. And of course, you can link them together.

comments: author: Will Dewfield
body: So I can raise one request and link this to all customer projects in order to not have to raise them or clone them multiple times ?


author: Will Dewfield
body: Thanks for the reply!!


author: John Funk
body: A request is an issue in the system. An issue only resides in a single project. If you create other issues, they can be linked to each other.

I don't think that is what you are asking but I am not following.

Can you give a step-by-step use case? Which I do this, I want this to happen (or I want to see this) ....


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there an Issue Type for SMART+ projects?
Asked by Andrew Parrott:

I'd like to start defining "SMART" or "SMARTER" projects in JIRA, which follow these conventions;

<https://en.wikipedia.org/wiki/SMART_criteria>

Do these Issue Type definitions or templates already exist for use? Has anyone already designed them for "Plug-and-Play" into any given JIRA instance?

It would be nice if these could be plumbed in as selectable Issue Types, much like Bug \& Story, which are immediately available, until being enabled for use.

SMART and SMARTER have been around a while, but this would aid in using a single tool to capture originating project definitions within JIRA itself - alongside work and service tickets, albeit they may be delivered in linked Confluence Project Pages.

Any thoughts on this - would this be useful for a wider audience?


Answers:
author: John Funk
body: Hi Andrew - Welcome to the Atlassian Community!

No, those don't come out of the box, but they are easy enough to add and then start using. It would be much simpler and reusable if you used Company-managed projects instead of Team-managed.


Tags: jira-cloud

jira-service-desk-cloud

jira-service-management

jira-service-management-cloud

jira-software
How to check for duplicates in an Asset Schema object through post-functions
Asked by Crystal Rouse:

When saving a custom field's data to the asset schema object, I need to check to make sure it does not already exist. The attribute is set to be unique. If the user tries to enter information already existing, there are no error messages returned.

Is there a way to check for the record in the asset schema as a validator or some other post function before writing the information to the asset schema object?

Any help appreciated!


Answers:
author: Fabian Lim
body: Hi [@Crystal Rouse](/t5/user/viewprofilepage/user-id/4230150)

You will have to use a scripting plugin such as scriptrunner/powerscripts/JMWE to access the objects in your Data Center instance. I believe there is an AQL you can run with the scripts that should check if an object with the same attribute already exists.

Regards,

Fabian


author: Connie H Johnston
body: We ended up using the basic Scriptrunner plugin available with the Validators. We were using the Summary as the label for the assets object, but wanted to make sure the name was unique.

We had to add a script to include an AQL search to see if there were any objects with the Activity Attribute (label) that matched the Summary entered on the Request Type. Here's what finally worked!

import com.atlassian.jira.component.ComponentAccessor;  
import com.atlassian.jira.issue.Issue;  
import com.atlassian.jira.issue.IssueManager;  
import com.onresolve.scriptrunner.runner.customisers.PluginModule;  
import com.onresolve.scriptrunner.runner.customisers.WithPlugin;  
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.IQLFacade;  
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectFacade;

@WithPlugin("com.riadalabs.jira.plugins.insight")  
@PluginModule IQLFacade iqlFacade  
//Get Summary (MMI Activity Name) and add quotes  
def activityName = issue.getSummary()toString();  
def activityNameAQL = ('"'+ activityName +'"');

//Check Activites Object Type in the MMI Resource Allocation Schema for any objects with an Activty(label)=Summary  
def objects = iqlFacade.findObjectsByIQLAndSchema(15,"objectTypeId=229 AND \\"Activity\\" IN (" + activityNameAQL + ")");

//if there are any objects then return false so the validation will fail  
//if there are NO objects then return true so the validation will pass and the new Activity(Suummary) can be added  
if (objects) {  
return false;  
} else  
return true;

![ScriptRunnerValidation_Create.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/331708iAC76EBCC5D1B1B7E/image-size/large?v=v2&px=999 "ScriptRunnerValidation_Create.jpg")


Tags: asset-management

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center
Showing 2 unique filters in one chart
Asked by Arnold, Ryan:

Hi all,

Trying to show a metric between issues on 2 different projects in a given month. Any tips on how to achieve this? Thanks in advance!

Project = \[PROJECT_A\] AND updatedDate\>="2024-05-01" AND updatedDate\<="2024-05-31"

Project = \[PROJECT B\] AND createdDate \>="2024-05-01" AND updatedDate\<="2024-05-31"

Given that these are two different projects, I want to see if it's possible to include them in one chart, filter, widget etc.


Answers:
author: Arnold, Ryan
body: Thanks for the reply. I'm actually just looking for the count of each metric, but it looks like there isn't anything native in JIRA that allows this and unfortunately, my org doesn't allow third-party gadgets.


author: Danut M _StonikByte_
body: Hi [@Arnold, Ryan](/t5/user/viewprofilepage/user-id/5515842),

I see the two filters, but what is the metric in question and what is the calculation formula behind that metric?

Jira is limited when it is about such calculations. But the **Advanced Issue Filter Formula gadget** offered by our **[Great Gadgets](https://marketplace.atlassian.com/search?query=stonikbyte%20great%20gadgets%20agile)** app can be best the solution for your need.

This gadget allows you to from ++simple++ (COUNT, SUM, AVERAGE ) to ++complex++ math formulas against the issues and/or the numerical fields of the issues from up-to 6 filters, and to calculate metrics, percentages etc by combining them in math formulas.

Here is an example that calculates the count of items in Filter 1 (Project A) and Filter 2 (Project B), and then calculates a simple metric that uses A+B formula.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/328731iA3C84380BB3CB33A/image-size/large?v=v2&px=999 "image.png")

See more about this gadget (and the many others offered by the same app) in this article: <https://community.atlassian.com/t5/App-Central/An-effective-dashboard-for-Service-Desk-and-Customer-Support/ba-p/2360369>

You could start with a **1-month free trial**. If you have any questions, feel free to contact us at support@stonikbyte.com.

Hope this helps.

Danut.


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center