youngmon/atlassian-qna huggingface dataset:
Why is Bamboo consuming swap space when memory is available?
Asked by jamesosbourn:

I have a number of Bamboo remote agents each with 6GB RAM and 1GB of swap. Our monitoring keep alerting that we have peaks where more than 50% of swap space is being used. Correspondingly monitoring is still showing \~4GB of RAM is free.

I have tried increased the mx value for the Bamboo agent to 2GB of memory, and whilst this has reduced the occurrences the problem persists.

I have added some additional monitoring to look at the JMX value coming out of Java and these seem to confirm that the Java process is not using very much memory. Although why is inconclusive.

Can anyone offer any thoughts or suggestion, or is this to be expected? My gut and reading tell me that swapping is not desirable, although I know some swapping is expected. I am a novice when it comes to Java tuning and curious why the observed activity is taking place.


Answers:
author: Giovanna Fragoso
body: Hi James,

The memory consumed by the remote agents is not the only one required for building. Remote agents will use external tools in order to perform a build. As an example, checking out the code will be performed by native git (that will create a new git process on the box that will run for the time of the checkout), compiling will use external tools (make, maven, or any other build tool) that will create a temporary child process that will consume the memory necessary for the compilation and will automatically be shut down after the compilation is completed.

If we set up 1GB of heap memory does not mean that the total memory footprint of the agent will be 1GB. The JVM will allocate 1GB for the heap and some additional memory for itself and all the libraries used by the agents (also known as stack memory). This memory depends on the number of plugins that need to be loaded on the remote agents.


Tags: java
How to restrict object selection based on Project for portal only customers
Asked by Danilo Simic:

Hello,

I have an object type called "Business Services" in which I added an attribute called "Related projects" which can hold projects.

I want to add an AQL to the filter issues scope so that only objects where a project is selected are available for the given project.   
For example, in Object 1 I have added project ABC, I want this object to be available only when a ticket is being created in project ABC.

I tested one solution but this only worked for Agents. Portal only customer did not see anything for some reason.

This is the full AQL I used:

(object having inR("Jira User" = ${reporter}) or object having inR("User Group" having user(${reporter}))) and***"Related Projects" = ${project}***

I bolded the part that I added to the AQL which worked but only for Agents as I mentioned above.

Is there a way to implement this so that it includes portal only customers as well?

Adding a screenshot of the field configuration:

![AQL field configuration.PNG](/t5/image/serverpage/image-id/333990i5396E062C0459634/image-size/large?v=v2&px=999 "AQL field configuration.PNG")


Answers:
author: Adolfo Casari
body: [@Danilo Simic](/t5/user/viewprofilepage/user-id/5456489)use this clause:

***Related Projects*** = currentProject()

It works for me.

comments: author: Danilo Simic
body: Hello [@Adolfo Casari](/t5/user/viewprofilepage/user-id/853257) , can you share the the configuration of Roles for the schema for which this worked in your case?

It works for portal only customers as well?


author: Adolfo Casari
body: In your own example, Business Service should have an attribute Related Projects of type Project.

With that I control on what JSM projects that service can be displayed or not. I also filter the objects by issuetype (i.e. request type) and jira group with:

"Tipo" = ${issuetype.label} AND "Grupo Afecto" having user("currentUser()")

Where Tipo is a select type attribute and Grupo Afecto is a group type attribute.


author: Adolfo Casari
body: I think you need to go to Roles in your schema where "Business Services" is and check that "Object Schema Users permissions for Jira Service Management Customers" is Enabled.

comments: author: Danilo Simic
body: Hello Adolfo,

If it is an issue with roles in the object schema, how come that customers can see and search for objects with this AQL:

(object having inR("Jira User" = ${reporter}) or object having inR("User Group" having user(${reporter})))

This AQL is only missing the part referencing the projects.

Could it be related to project permissions maybe?


Tags: aql

assets

cloud

custom-field

customer-portal

field-configuration

jira-service-management

jira-service-management-cloud
Cannot add field to request form
Asked by Michael Alfred Wilson:

Hi,

I have this "Deployment Target" custom field that I would like to add to two different request forms with different issue types.

I have created new two contexts (one for each issue type) because I want these two forms to have different options.

![asset movement.png](https://community.atlassian.com/t5/image/serverpage/image-id/333987i823B5E7D9A513693/image-dimensions/336x136?v=v2 "asset movement.png")

![asset deployment.png](https://community.atlassian.com/t5/image/serverpage/image-id/333988i33041DD0F582EA38/image-dimensions/341x141?v=v2 "asset deployment.png")

However when I add the field into the asset movement form, the field keeps getting removed from the form.

Why does this happen? And how to fix it?

Thanks.


Answers:
author: Cristian IONESCU
body: Hi Michael,  

Unfortunately this is not possible but there is a suggestion idea open for that.  
Feel free to vote and watch the issue:  
<https://jira.atlassian.com/browse/JRACLOUD-6851>


author: Michael Alfred Wilson
body: I just re-read the documentation.

It says that I can only specify one custom field context for each project.

This is so confusing, why would Atlassian allow selecting the same project in two different contexts, if we can't use them anyway?


Tags: cloud

jira-service-management

jira-service-management-cloud
Add images to the description field on the request form
Asked by Daniel Pfeffer:

JSM distinguishes between request forms that are entered internally (directly in JSM) and those that are entered via the customer portal. In the internal application, images can also be added in the "Description" field. This function is not available in the customer portal. Is there a way to add this add function in the customer portal as well?

**JSM:**   
![08-07-2024_13-48-50.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/333984i5C60B507B6501387/image-size/large?v=v2&px=999 "08-07-2024_13-48-50.jpg")

**Customer portal:**

![08-07-2024_13-49-32.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/333985iC835801B53AFE4C5/image-size/large?v=v2&px=999 "08-07-2024_13-49-32.jpg")


Answers:
author: Susan Waldrip
body: Hi [@Daniel Pfeffer](/t5/user/viewprofilepage/user-id/4812153), have you tried dragging an image or file into the Description section? I was able to do it in the portal but I'm an admin and don't know if that works for portal Customers. When I did this, the file was treated as an attachment and showed up in the Attachments field on the Request Form (customer view) instead of in the Description field. That said, you could also include an Attachment field on the screen so they can drag files there (which would be a little more intuitive).

![Screenshot 2024-07-08 084051.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/334026iFB34DF7B78FE6E4C/image-size/large?v=v2&px=999 "Screenshot 2024-07-08 084051.jpg")

Hope this helps, good luck!

comments: author: Daniel Pfeffer
body: Dear [@Susan Waldrip](/t5/user/viewprofilepage/user-id/5343063) Thank you for your answer.

We already have the procedure you described. However, I would like customers to be able to insert an image in the text, as is possible here in the chat or in the internal Jira application. How do I get the add image/photo icon into the customer view?


author: Susan Waldrip
body: Ah, I see. Hmm, one of our experts will have to answer that one, I hope they can help you soon. Thanks for clarifying!


Tags: cloud

jira-service-management

jira-service-management-cloud
Created and resolved chart
Asked by Iryna Dumych:

Hello,   
I am building a dashboard for my team and i want to see the overview of the created and solved tickets for the last 30 days. The created and resolved gadget was added to the Dashboard but i can see also the forecast for the future how many tickets will be solved/ created. Could you please advise how to switch off this forecast?

Thank you

Regards,

Iryna

[Adding the Created vs Resolved Gadget \| Atlassian Support \| Atlassian Documentation](https://confluence.atlassian.com/jira064/adding-the-created-vs-resolved-gadget-720416880.html)


Answers:
author: Jack Brickey
body: Hi [@Iryna Dumych](/t5/user/viewprofilepage/user-id/5538436) , I am not sure exactly what your expectations are but that gadget does have a trend line that can be included. Maybe you have enabled but you are expecting something different?

comments: author: Iryna Dumych
body: Thank you, Jack, for the information, but is it possible to see only the data for the last 30/90 days, not the forecast for the future: ![?Closed -opened.png](https://community.atlassian.com/t5/image/serverpage/image-id/333986i5D264362655D6F58/image-size/large?v=v2&px=999 "?Closed -opened.png")


author: Jack Brickey
body: Can you share the screenshot of the gadget configuration screen please?


author: Iryna Dumych
body: sure![configuration. png.png](https://community.atlassian.com/t5/image/serverpage/image-id/333995iCFD4426C00BF68D2/image-size/large?v=v2&px=999 "configuration. png.png")


author: Jack Brickey
body: it makes no sense that you are seeing date to be on today. I would be interested in seeing what data is feeding that chart. If you click on the dots on the line beyond today and select view in navigator what is displayed?


author: Jack Brickey
body: Somehow it seems that some issues were created in the future. Someone possibly messing with the time....or a bug. I am interested in this data point...

![IMG_4323.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/334000i9BE207B55B137369/image-size/large?v=v2&px=999 "IMG_4323.jpeg")


author: Iryna Dumych
body: Thanks, Jack, for the information. We updated the created date by importing Key, summary and created date, now issue is solved. thanks for a pice of advice.


Tags: cloud

jira-service-management

jira-service-management-cloud
Make field mendatory once to make certsin transition
Asked by Lilli von Berg:

Hey everyone,

I have a field in one of my issue types that is supposed to be filled out before the issue is ,oved to the status "done". Since the person who works on the issue is supposed to fill ut this field once the issue is solved I can not make this fild mendatory in the "request type"-section. When adjusting the workflow, I can select to create a rule for a specific transitoion. However, there is no such rule as making a specfic field mendatory so this won't be halpful I guess. I have seen the option "transition properties". Does anyone know wheter this could be an option for me or does anyone have ha different idead?

Help would be much appreciated - Thanks in advance,

Lilli


Answers:
author: Cristian IONESCU
body: Hi Lilli,  

1.You need to create a new Screen and add the requested field (Let call it: "Field A" to the new created Screen.  
2.Open the workflow and click on the transition that is moving the ticket to Done and click Edit

3.Add this screen to the transition

4. On the same transition go to Validator and select: Field Required Validator and click Add  
5. Search in the dropdown for "Field A" and also compose and Error Message eg. (Field A must be completed prior closing the ticket")  
6. Click Add and publish Draft.  

Hope this will solve your problem.


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

Is this a Team-managed or Company-managed project? If Company-managed, try using the Old editor for the workflow. There you should see a Validator for Field Required for the transition to Done.

comments: author: John Funk
body: [@Lilli von Berg](/t5/user/viewprofilepage/user-id/5513927) - Any update?


author: Geethanjali Katagani
body: Hi [@Lilli von Berg](/t5/user/viewprofilepage/user-id/5513927) ,

In a Workflow transition you can set up validators. One of these Validators is that a field needs a value or have to be changed during transition


Tags: cloud

jira-cloud-administration

jira-service-management

jira-service-management-cloud

not-applicable
Integraci?n jira con un siem
Asked by Baltazar Waterloo:

Buenos d?as quer?a consultar informaci?n sobre c?mo es el proceso de integraci?n de Jira con un Siem en el caso nuestro es el fortisiem y cu?les son las configuraciones del lado de jira


Answers:
author: Dan Breyen
body: Hi [@Baltazar Waterloo](/t5/user/viewprofilepage/user-id/5536376) welcome to the community. I found this[community article](https://community.atlassian.com/t5/Jira-questions/JIRA-Service-desk-integration-with-SIEM-Tool/qaq-p/1152445). That sounds like there may be some integration with Jira by using something from the Atlassian Marketplace.

You could try looking there for more assistance.

Hope that helps


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I transfer all applications in the resolved status to the closed status? I have 394, can I c
Asked by UZUM FER-11:

[https://jsm.uzum.com/servicedesk/customer/user/requests?status=closed\&page=4](https://jsm.uzum.com/servicedesk/customer/user/requests?status=closed&page=4)


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

You can create a query in the search function like: Project = ABC and status = Resolved

Then once you have the result, click the 3 dots menu and select Bulk change.

Go through the prompts, choosing Transition at the appropriate point.


Tags: jira-service-management

jira-service-management-unknown-hosting-type

unknown-hosting-type
How to display the form after changing a state?
Asked by MyCloud Admin:

When I want to change state, I want a form to appear, for example to add an internal note.

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


Answers:
author: Sreenivasaraju P
body: HI [@MyCloud Admin](/t5/user/viewprofilepage/user-id/5525260) ,

Using screens for the transitions you can get form while changing the status.

please refer below link for details

<https://confluence.atlassian.com/jirakb/map-a-screen-to-a-workflow-transition-in-jira-company-managed-projects-720634253.html>

comments: author: MyCloud Admin
body: Thank you :)


author: Rebekka Heilmann _viadee_
body: Hi [@MyCloud Admin](/t5/user/viewprofilepage/user-id/5525260)

you need to create a new Screen and leave that empty. You can then Edit the Workflow transition in the Workflow editor and add the Screen to the transition.

That should give you the Comment Editor on the transition that you can use for internal notes.


Tags: cloud

jira-service-management

jira-service-management-cloud
Help Centre Portal - Email
Asked by Emmanuel_A:

When inviting a customer to you help centre portal, they receive an email to activate their account

I would like to customise that email that is sent to the user.

How can i do this?

Appreciate your help


Answers:
author: Kris Dewachter
body: Hi [@Emmanuel_A](/t5/user/viewprofilepage/user-id/5506342) ,

There is an invitation email in the "Customer Notifications" settings of your Jira Service Management project. Is this the email you refer to ? If so, you can customize the email here.

If you are talking about another email (coming from Atlassian itself), I don't think you can customize that one.

Best regards,

Kris


Tags: cloud

jira-service-management

jira-service-management-cloud
Risk Manager matrix or Table not working
Asked by SK:

Hi,

I installed SoftComply Risk Manager and enabled Risk management for few projects.

But I get an error when trying to view Risk matrix or Table.

Appreciate any assistance

TIA![Screenshot 2024-07-08 101939.jpg](/t5/image/serverpage/image-id/333878iD968A0D8D21B07A2/image-size/large?v=v2&px=999 "Screenshot 2024-07-08 101939.jpg")


Answers:
author: Margus _SoftComply_
body: Hi!

If you still have issues with the app please contact app vendor support at <https://softcomply.atlassian.net/servicedesk/customer/portals>

Each app has support section on the apps marketplace listing and you can find all the details to contact them under Support tab.

best wishes!

comments: author: SK
body: Thanks [@Margus _SoftComply_](/t5/user/viewprofilepage/user-id/65460)


Tags: cloud

jira-service-management

jira-service-management-cloud
using power script condition \ vaon Jira
Asked by Yuval Bar Lev:

on a workflow from status A to status B  
I want to have RCA field as mandatory if labels contain "regression" and "stg"  

on that workflow, I tried using power script as condition as used below jira expression   
then on the validator tab added validator that RCA field != empty (using 'Field Required Validator')  

the problem:  
1. RCA was always mandatory and didn't check the condition of certain labels  
+  
2. status B didn't appear on the statuses option list   

what did i do wrong?

    issue.labels.contains("regression") && issue.labels.contains("staging")


Answers:
author: Khang Bui_Candylio
body: Hi [@Yuval Bar Lev](/t5/user/viewprofilepage/user-id/5534034) ,

From my POV, I think you should fix it as **issue.labels.includes** and use the workflow validator as here:  

```
(issue.labels.includes("regression") || issue.labels.includes("stg")) ?

    issue.customfield_10423 != null :

    true

```

For status B doesn't appear on option list is maybe because you might have set up the workflow condition instead of validator.![chrome_m7QjH3RXYG.png](https://community.atlassian.com/t5/image/serverpage/image-id/335524i2E4F187306512A45/image-size/large?v=v2&px=999 "chrome_m7QjH3RXYG.png")![chrome_58iBWtcoP3.png](https://community.atlassian.com/t5/image/serverpage/image-id/335523i8B74F823DAF7C7A9/image-size/large?v=v2&px=999 "chrome_58iBWtcoP3.png")

I hope this can help and meet your requirement

Kind regards,

comments: author: Yuval Bar Lev
body: thank you very much, very helpful [@Khang Bui_Candylio](/t5/user/viewprofilepage/user-id/5192657)   
1. so i should use only validator as you showed, and not have condition at all?  
2. the below line you wrote, represent the RCA field that i want to make sure is not null? how do i know the field ID ('customfield_10423') for other fields?

3. if i want to have more then one field to validate is not null, i just add another row like the one below?

```
 issue.customfield_10423 != null :
```

<br />

Jira will force this validation only when the labels exist?


author: Khang Bui_Candylio
body: Hi [@Yuval Bar Lev](/t5/user/viewprofilepage/user-id/5534034) ,

1. It's best practise to use validator if you want to validate fields and you will need a transtion screen from status A to status B

2. You can check customfield id by go to Settings \> Issues \> Custom fields \> \*Edit context\* \> You'll see a row of number on the URL

![chrome_L7m7OjHfdO.png](https://community.atlassian.com/t5/image/serverpage/image-id/335550i375535E1F03485FE/image-dimensions/439x404?v=v2 "chrome_L7m7OjHfdO.png")

3. It's best for you to use the product's documentation.

I hope this information is helpful

Kind regards,


Tags: cloud

jira-service-management

jira-service-management-cloud
set options for a multi-select custom field via script
Asked by HanQiao:

Hi Team  

Im trying to add options to a multi-select custome field via Python script:  

<br />

def set_field_options(field_id, options):

url = f'{JIRA_URL}/rest/api/2/field/{field_id}/option'

for option in options:

data = { 'value': option }

response = requests.post(url, data=json.dumps(data), auth=HTTPBasicAuth(USERNAME, API_TOKEN), headers=headers)

I always got an error like:  

Failed to create option 'REPLACE LMD' for field 'customfield_10169'. Status code: 400, Response: {"errorMessages":\[\],"errors":{"fieldKey":"Field key 'customfield_10169' is not valid"}}  

or  

Failed to create options for field 'customfield_10169'. Status code: 400, Response: {"errorMessages":\["Invalid request payload. Refer to the REST API documentation and try again."\]}  

Could you help me to solve the problem or give me a API documentation for reference?  

Thanks a lot


Answers:
author: Joseph Chung Yin
body: [@HanQiao](/t5/user/viewprofilepage/user-id/5532496) -

Take a look at the following reference link on REST APIs -

<https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-post>

Hope this helps.

Best, Joseph Chung Yin

comments: author: HanQiao
body: [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739)   
Thanks a lot.  
This reference is helpful.  


Tags: cloud

jira-service-management

jira-service-management-cloud
How to tag a email request based on email's domain ?
Asked by Marc Rosarian:

Hi there,

Here's the use case. In our JSM premium, we manage 2 diff domains (domain1.com \& domain 2..com)

So we get email requests from clients using exclusively these 2 domains.   
I'm trying to get JSM to automatically tag the request based on the reporter email address.

If the client (reporter)'s email address is "**Client@domain1.com** " , then the ticket should be tagged "**Internal** " .. and if the client (reporter)'s email address is "**Client@domain2.com** " then it should be tagged "**External**"

Any idea how to do that ?   
Any help would be greatly appreciated  

Thanks


Answers:
author: Ciara TN
body: Hi Marc,

Welcome to Atlassian Community.

Not knowing your set up fully I would offer a couple of pointers and depending on how your users look as the assignee.   

Set up two [Organizations](https://support.atlassian.com/jira-service-management-cloud/docs/use-email-domains-to-automatically-group-customers-into-organizations/) in your portal - Org1 - domain1 and Org2 - domain2.

Using this Organization then set up automation to set the label or custom field to Internal or External.   

Or you could just use Automation and read the reporter's email -

```
{{reporter.emailAddress.split("@").last}}

```

Hope this helps.

-Ciara


Tags: cloud

jira-service-management

jira-service-management-cloud