youngmon/atlassian-qna huggingface dataset:
How to Dynamically Filter Second Dropdown Based on First Dropdown Selection in JIRA Issues?
Asked by Job Mathew Kollamana:

I am currently encountering a challenge with implementing a dynamic filtering mechanism within JIRA issues. Specifically, my objective is to utilize two custom dropdown fields related to asset objects, where the selection made in the first dropdown dynamically influences the available options in the second dropdown. These custom fields are designed to interact with each other based on an underlying asset's object attribute reference.

![2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/310718i947B39E350A97031/image-size/large?v=v2&px=999 "2.PNG")

To achieve this dynamic interaction, I have been attempting to configure the Filter issue scope using AQL (Asset Query Language). The goal is to construct an AQL statement that dynamically filters the second dropdown options based on the selection from the first dropdown or an input from a text field. However, I am facing difficulties in correctly formulating the AQL statement as per the provided documentation. While entering a static formula in the Filter scope (AQL) field validates and functions as expected, transitioning this to a dynamic Filter issue scope (AQL) scenario results in validation errors.

![1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/310716iFCE89A129A4C6F6A/image-size/large?v=v2&px=999 "1.PNG")

Interestingly, when I omit the dollar sign ($) from the formula, it passes validation but fails to function as required.

![3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/310719iCE4B971FC0A42CAF/image-size/large?v=v2&px=999 "3.PNG")

Has anyone encountered a similar issue or can offer guidance on how to successfully implement dynamic filtering between custom dropdown fields using AQL within JIRA? Any insights on the correct formulation of the AQL statement or alternative approaches to achieve this dynamic filtering capability would be greatly appreciated.

Thank you in advance for your assistance and recommendations.


Answers:
author: Job Mathew Kollamana
body: The resolution to the issue involved utilizing a custom field of the type "asset object" within the placeholder. By specifying the correct type for the custom field, the query now functions as intended.

The corrected AQL query is:

**object having inboundReferences(Station IN (${customfield_10062}))**

Here, customfield_10062 is identified as a custom field of the type "asset object," which was the key to resolving the problem. This adjustment ensured that the AQL query could dynamically filter based on the asset object selected in the custom field, allowing for the intended dynamic filtering functionality within JIRA issues.


Tags: cloud

jira-service-management

jira-service-management-cloud
Is there a cap on the number of site administrators
Asked by GuZhengJian:

Is there a cap on the number of site administrators


Answers:
author: Alex Koxaras _Relational_
body: Hi [@GuZhengJian](/t5/user/viewprofilepage/user-id/5353564)

No there isnt a limit to grant the site admin to anyone you want. However I would advise you to have a handful of them and not to everyone on your company. This could lead to catastrophic situations.

comments: author: GuZhengJian
body: thank you


author: Tony
body: Hello!  

I believe there isn't a predefined limit, but it's crucial to consider security and access control best practices when assigning site/org admin roles. Granting administrator access to only those who genuinely need it helps minimize security risks and ensures that the system remains well-managed and in one "Style". Trust me I had the pleasure to inherit someone else's work and it is very hard and confusing to understand their practices without them next to you.


Tags: cloud

jira-service-management

jira-service-management-cloud
Customer cannot attach image
Asked by Izaskun Ochoa:

A customer has opened an issue in Jira Service Management, but is unable to attach images. What he says is "It was a normal window box asking me to browse file or drag and drop any file in the box".


Answers:
author: Asmath Basha S
body: Hi [@Izaskun Ochoa](/t5/user/viewprofilepage/user-id/5232230) ,

By using the Browse file you can attach Image too.

If it doesn't work kindly add the screenshot for better understanding.

comments: author: Izaskun Ochoa
body: This is the image she has given me, is it helpful?

![Captura de pantalla 2024-03-07 105919.png](https://community.atlassian.com/t5/image/serverpage/image-id/310753iF4DA70B9D81EFAF5/image-size/large?v=v2&px=999 "Captura de pantalla 2024-03-07 105919.png")


author: Asmath Basha S
body: [@Izaskun Ochoa](/t5/user/viewprofilepage/user-id/5232230) ,

Click on the Browse tab and upload the Image file as well. It will support both attachments in PDF, Word as well as Image formats. Is there any issues while uploading the image?


author: lichu
body: I am having this same issue with not being able to attach images in the description field and attachment field. Did you get a solution? I've have tried png and jpg files.


author: Fabio Racobaldo _Herzum_
body: Hi [@Izaskun Ochoa](/t5/user/viewprofilepage/user-id/5232230) ,

are you sure that attachment field is on the request type form?

Fabio

comments: author: Izaskun Ochoa
body: Which formats does Jira manage?


Tags: cloud

jira-service-management

jira-service-management-cloud
How to edit field layout of Details section on Issue View page
Asked by Jorden Minos:

Hi All,

I am wanting to edit the field layout for the right panels on an issue page.

I've tried going to Project Settings \> Service Requests \> Issue View (which is same as when you click "Configure" bottom right on an issue page),

however the fields \& field ordering on those pages are inconsistent with what is on the live issue page.

When I do add a new field in the "Context" section under "Issue View" and click Save, that field appears on the left panel (under "Description" panel), rather than under the "Details" panel on the right (which is where I want it to appear).

Any advice greatly appreciated. I'm relatively new to Jira so I'm sure there's a simple solution I'm missing.

Thanks!


Answers:
author: Jorden Minos
body: [@John Funk](/t5/user/viewprofilepage/user-id/7148) - a belated thank you for your reply. I think my problem was that I was looking at the incorrect request type. All good now


author: Kris Dewachter
body: Hi [@Jorden Minos](/t5/user/viewprofilepage/user-id/5446755) ,

Welcome to the community.

If a field is added to the request type form (so visible in the portal for the customer), it will always appear in the "details" section.

Please also beware that the order of the fields can be set differently for each request type. So make sure you compare the issue with the correct request type of that issue.

Best regards,

Kris

comments: author: Jorden Minos
body: Hi [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367) - a belated thank you for your reply. I think my problem was that I was looking at the incorrect request type.


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

Can you share some screenshots of what's happening? I've never seen that before where the field shows up in the other section after you hit the save button.


Tags: cloud

jira-service-management

jira-service-management-cloud
Where has "match any attribute" gone again in JSM Assets?
Asked by Jeffrey Eaton:

There appears to heave been another change to JSM Assets search whereby search by any attribute has vanished again.

There is now a list of attributes on the right but it doesn't replace the aspect of searching via "any" attibute - why on earth was this removed?


Answers:
author: Justin King
body: Hi Jeffrey,  

The reason we have made this change is to accomodate the deprecation of the anyAttribute function in AQL (see the deprecation notice [here](https://community.atlassian.com/t5/Jira-Service-Management-articles/UPDATED-DATE-Upcoming-change-Assets-AQL-function-anyAttribute-to/ba-p/2586178)). The old version of the search feature relied on this hence us needing to re-work the feature to remove that dependency.   

I understand the "match any attribute" toggle was quite convenient. Unfortunately it is not a feature that we can provide acceptable performance for. By providing you the ability to select the particular attribute(s) that apply to your search, we can provide results significantly faster. This also provides the ability to be more specific when searching which is useful for many customers.   

Could you explain a little about your use case and why the new version does not solve your problem?   

Thanks!  

Justin

comments: author: Ivan Ivanchenko
body: Hello Justin  
Have a question  
For example i want to make a search with specific attributes and i want to save selected attributes how i can i do that?  
Now i have only 3 attributes always selected.![Screenshot 2024-03-12 at 17.11.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/311603iE9ECB53FE5484C7E/image-size/large?v=v2&px=999 "Screenshot 2024-03-12 at 17.11.32.png")


author: Justin King
body: Hi [@ivan](/t5/user/viewprofilepage/user-id/5166788)  

Just to make sure I understand the problem. You are finding when you navigate away from the page and then return again, your previously selected attributes are not retained?


author: Ivan Ivanchenko
body: Hi [@Justin King](/t5/user/viewprofilepage/user-id/4231830)   
Yes, exactly that problem


author: Justin King
body: [@Ivan Ivanchenko](/t5/user/viewprofilepage/user-id/5447497) thanks. We'll be shipping an update in the short term to ensure previously selected options are retained.


author: Yevhenii D
body: I have the same problem, I'm looking forward to an update with a solution to this problem


author: Justin King
body: Hi folks. The update mentioned above is now released! You will find your search selections for a schema saved even when navigating away or refreshing your browser. These will persist until you clear your browsers cache.


author: Yevhenii D
body: [@Justin King](/t5/user/viewprofilepage/user-id/4231830) Thank You!


Tags: assets

cloud

jira-service-management

jira-service-management-cloud
How to copy a date field from an issue into an asset object using Json
Asked by Rhea Anand:

I have a field called "Start Date" on an issue.

Using Jira automation, I want to 'create an asset using Scriptrunner' and copy the Start Date field into a date attribute on an object.

I've tried:

"Start": "{{issue.Start Date}}"

"Start": "{{issue.Start Date.asJsonString}}"

and none have worked so far. Any ideas?


Answers:
author: Sankalp Chugh
body: Hi [@Rhea Anand](/t5/user/viewprofilepage/user-id/5446653)

I had a similar issue as the "Start Date" is two words. I added the value to a variable and then used this value. That fixed my issue.

I hope that works for you.


author: Joseph Chung Yin
body: [@Rhea Anand](/t5/user/viewprofilepage/user-id/5446653) -

Welcome to the community. Can you clarify your statement of "none have worked so far?"

Are you not getting the custom field value?

Are the object not created in your Assets Schema?

Lastly if you have problem with ScriptRunner for Jira, you should contact the vendor support team to further assist your ask.

Please advise.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

comments: author: Rhea Anand
body: [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739)

I am not able to copy the Start Date field into the Start field in the object when creating the object.

If i leave the Start Date field out of the automation action, then i am able to create the object. However, I require that field for my use.


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center
my email has been blocked
Asked by Gagan Deep:

give me solution


Answers:
author: Charlie Misonne
body: Hello and welcome to the Atlassian Community!

For account issues it's better to contact Atlassian support: <https://support.atlassian.com/contact/#/>

Give them more information. An error message you get for example.


author: Theodora Boudale
body: Hi [@Gagan Deep](/t5/user/viewprofilepage/user-id/5140595) and welcome to the community.

Does this concern the email address of your community account?

There is a Bitbucket Cloud account associated with that email address. The email address of that account is not in any of our suppression lists.

Could you please share some more details about the issue you are experiencing:

* are you not receiving any emails from Bitbucket? If so, what type of emails are you missing (invitations, notification emails)?
* whether the issue concerns a different email address

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sign-up
Is there a way to hide the Sync now button?
Asked by loco_Daiki_Iwamoto:

Is there a way to hide the Sync now button? {#toc-hId--494731753}
-----------------------------------------------------------------

We are doing team development using git feature flow (or something like it).

There is a time when a team member merges a feature branch cut from the main branch into the develop branch and checks it in the development environment.  
The "Sync now" button should be disabled (or hidden) because the "Sync now" button is used to import the differences between the main and feature branches by using the "Sync now" button. I would like to prohibit (or hide) the "Sync now" button.

I have been trying to encourage team members to do this, but some of them are not familiar with git and often make mistakes by using the "Sync now" button.


Answers:
author: Patrik S
body: Hello [@loco_Daiki_Iwamoto](/t5/user/viewprofilepage/user-id/5140283) ,

Thank you for reaching out to the community!

The Sync button is shown only when the source branch is behind the destination branch, meaning that commits were pushed to the destination branch after it was branched off, and these commits are not currently included in the source branch.

As for hiding the Sync button, I'm afraid this is not currently possible, but we do have a feature request to implement this functionality:

* <https://jira.atlassian.com/browse/BCLOUD-22262>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@loco_Daiki_Iwamoto](/t5/user/viewprofilepage/user-id/5140283) !

Patrik S


Tags: bitbucket-cloud

cloud
Can we provide read access to all the repositories in a single workspace for a single user??
Asked by Srikanth Vemuluri:

Hello Team,  

Is there any way to provide read only access to all Repositories in a Particular Workspace for a single user? Without doing it manually for each repo?? Please suggest


Answers:
author: Patrik S
body: Hello [@Srikanth Vemuluri](/t5/user/viewprofilepage/user-id/4636631) ,

Thank you for reaching out to Atlassian Community.

I think the easiest way would be to [Create a User Group](https://support.atlassian.com/bitbucket-cloud/docs/organize-groups-for-your-repositories/#Create-a-new-user-group) that has only read access and then give this group permissions to all the repositories by following the below steps :

1. Go to **Workspace Settings** \> **User groups**
2. Select the group you have created
3. Click on the **Add repository** button in the top right corner
4. Check all the repositories you want this group to have access to (you can add up to 20 repos at a time)
5. Select the level of permission this group will have in those repos (Read, Write or Admin) and then click **Confirm**.

After that, all the members added to this group will have permission to the repositories you have granted that group access to.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Srikanth Vemuluri](/t5/user/viewprofilepage/user-id/4636631) !

Patrik S

comments: author: Srikanth Vemuluri
body: It worked for me.  

Thank you, [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


Tags: bitbucket-cloud

cloud

repository
Why can't I make a custom pre-hook in a project
Asked by Margaria Vince:

Hello, I am trying to make a custom pre-receive hook but I can't make a custom pre-hook in a project I created, I can only do a custom pre-hook if I am at the base of my BB, making it really difficult to test my pre-hook since a lot of users will be impacted. Is there something I am missing ?


Answers:
author: Craig Nodwell
body: Hi [@Margaria Vince](/t5/user/viewprofilepage/user-id/5095262) you can do this at the Project or even Repository Level. Go to Admin in the Project then Scriptrunner then Pre-Hooks

comments: author: Craig Nodwell
body: Here's a [reference](https://docs.adaptavist.com/sr4bib/latest/features/script-pre-receive-hooks) for you  

![Screenshot 2023-02-06 121255.png](https://community.atlassian.com/t5/image/serverpage/image-id/238461i358B87151D191A06/image-size/large?v=v2&px=999 "Screenshot 2023-02-06 121255.png")


author: Margaria Vince
body: Hello, it seems you did not understand my problem so I took a screenshot, whenever I am in a project, I don't have the option to create a custom pre-hook, but If I go to the root (where all the pre-hooks for every project are) I can create a custom pre-hook.

![no_custom.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/238557i726710B4319711A9/image-size/large?v=v2&px=999 "no_custom.PNG")


author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Margaria Vince](/t5/user/viewprofilepage/user-id/5095262)

ScriptRunner scripts for Project and Repository level, are running in restricted sandboxed environment, see <https://docs.adaptavist.com/sr4bib/latest/get-started/settings/admin-only-project-and-repository-script-access>

This also means that some features are only available in a Global level, and cannot be set in a repository or project level, for a full list of these features, you can have a look at <https://docs.adaptavist.com/sr4bib/latest/get-started/permissions>


Tags: bitbucket-server

jira

scriptrunner

server
SonarQube server [http://localhost:9000] can not be reached
Asked by Yogesh Ravichandran:

I am using gitlab ci for connecting sonarqube to my code.

Followed the same instructions as given in sonarqube portal to connect with gitlab CI.

but getting the following error.

INFO: User cache: /builds/development-caracal/caracal/.sonar/cache  
[32](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L32)ERROR: SonarQube server \[[http://localhost:9000\]](http://localhost:9000]/) can not be reached  
[33](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L33)INFO: ------------------------------------------------------------------------  
[34](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L34)INFO: EXECUTION FAILURE  
[35](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L35)INFO: ------------------------------------------------------------------------  
[36](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L36)INFO: Total time: 0.752s  
[37](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L37)INFO: Final Memory: 3M/15M  
ERROR: Error during SonarScanner execution  
[40](https://gitlab.com/development-caracal/caracal/-/jobs/3718179663#L40)org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis


Answers:
author: Charlie Misonne
body: Hi!

Is your gitlab build agent running on the same machine as SonarQube?

You are using localhost:9000 so if SonarQube runs on another machine you should use the correct hostname.

comments: author: Yogesh Ravichandran
body: Even if i try to put that ip i am getting same issue..

SonarQube server \[[http://18.183.117.92:9000\]](http://18.183.117.92:9000]/) can not be reached

If i try to run the docker image of sonarqube i am getting following error..

root@ip-172-31-11-139:/# docker run -it a5403b12a988  
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties  
INFO: Project root configuration file: NONE  
INFO: SonarScanner 4.8.0.2856  
INFO: Java 11.0.18 Alpine (64-bit)  
INFO: Linux 5.15.0-1028-aws amd64  
INFO: User cache: /opt/sonar-scanner/.sonar/cache  
ERROR: SonarQube server \[<http://localhost:9000>\] can not be reached  
INFO: ------------------------------------------------------------------------  
INFO: EXECUTION FAILURE  
INFO: ------------------------------------------------------------------------  
INFO: Total time: 0.769s  
INFO: Final Memory: 3M/15M  
INFO: ------------------------------------------------------------------------  
ERROR: Error during SonarScanner execution  
org.sonarsource.sc


author: Charlie Misonne
body: Does the firewall allow the connections?

Or maybe you need to use some proxy settings?


author: Yogesh Ravichandran
body: Everything seems to be fine...

can u suggest any other way


author: Charlie Misonne
body: Have you tried using curl to test the connection to SonarQube from the same build agent? Maybe it will give you a better error.

It's difficult for me or other community members to troubleshoot network related issues.


Tags: atl-gruland

bitbucket-server

gitlab

server
Bitbucket cloud repo automatically push codes into our local private windows machine when commit.
Asked by Naveenkumar M:

We have repo in bitbucket cloud. whenever commit happens we need automatically push codes into our file location. we have multiple local windows machine. i tried the FTP method and SSH both need public IP but we need each server to get a public IP thats a long process. is there any method to create a pipeline to automatically push codes into local private windows machine. previosly i tried this code

script:  
- pipe: atlassian/ftp-deploy:0.3.7  
variables:  
USER: $FTP_USERNAME  
PASSWORD: $FTP_PASSWORD  
SERVER: 172.27.140.71  
REMOTE_PATH: /tmp/my-remote-directory  
LOCAL_PATH: /,  
EXTRA_ARGS: "--exclude=filename_to_exclude.txt --exclude=folder_to_exclude/"

its not woeking so i tried openSSH method

image: node:14

pipelines:  
default:  
- step:  
name: Deploy to Windows Server  
script:  
- apt-get update \&\& apt-get install -y openssh-client  
- ssh -T $USERNAME@$HOST  
cd C:\\databottest  
git clone git@bitbucket.org:\<redacted\>/\<redacted\>.git .  
git checkout master  
git pull origin master

this is also not working i added known host and open 22 port also, please suggest me best way to communicate cloud to local network.


Answers:
author: Patrik S
body: Hello [@Naveenkumar M](/t5/user/viewprofilepage/user-id/4856002) ,

Thank you for reaching out to Atlassian Community!

When executing your pipeline using Atlassian infrastructure (cloud runners), your builds will run in a cloud environment and to access external resources, such as your windows servers, these servers will need to have a public IP address so they are reachable from the internet.

In order to access servers in your local network you have the option to use [self-hosted runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/), so the build will run in your own infrastructure and have access to the servers within your local network.

Another option would be to implement a script/job in each of the servers that keep pulling (git pull) the repository from bitbucket every X minutes, so you would get the latest update from the repo every time the job runs.

Hope that helps to address your questions!

Thank you, [@Naveenkumar M](/t5/user/viewprofilepage/user-id/4856002)


Tags: bitbucket-cloud

cloud