youngmon/atlassian-qna huggingface dataset:
How can i go back to trial version of JIRA Service Management?
Asked by S Jena:

Hello Team,

I am not able to open JIRA Service management. the page showing the below error

**Error** - Encountered a `"403 - Forbidden"` error while loading this page.

I have tried the solution showing in community in below link, but still showing same error.

Link - <https://community.atlassian.com/t5/Jira-Software-questions/Could-I-back-to-free-version-after-trial-period/qaq-p/1608767>

Refer the attached screenshot for more reference.

Please help me to resolve this issue.

![Capture254.PNG](/t5/image/serverpage/image-id/302873i038EC798BED84A5E/image-size/large?v=v2&px=999 "Capture254.PNG")

Thanks

Swopna


Answers:
author: Nic Brough -Adaptavist-
body: Hi Swopna,

As it says in your screenshot, you will need to contact customer support. Go to [https://support.atlassian.com](https://support.atlassian.com?)

It is probably best to raise a billing question with them. The more technical questions are likely to land you back here in the Community, where we cannot help.

comments: author: S Jena
body: Thanks [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

I have created the support request for the above issue


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I enforce an approval
Asked by Tim H_:

Hi,

my workflow starts with an approval step:

- If approved: Go to next step (Step A)

- If declined: Close issue

That works just fine. However, after step A, there are also steps B to G. All those steps have transitions to all other steps: From A, you can go to B, C, D,...G, or closed. And so on. In order not to have a totally crazy workflow diagram with \*lots\* of transitions, I allow A-G to be transitioned to from any other step.

Unfortunately, this interferes with my intended approval step. Now, an agent can move a ticket with pending approval to step A (or any other state). That's not what I want.

I had a look at the [docs](https://confluence.atlassian.com/adminjiraserver/configuring-jira-service-management-approvals-938847527.html) (--\> Are approvals always required?) and it said that in order to work properly, approvals may only have two transitions. I guess, that's why my configuration is problematic (as I can access state A, B, C,... from everywhere including from the approval step).

I added a condition to each of the "any"-transitions: "block transition if approval is pending". But this does not seem to work.

Any ideas? Any help is greatly appreciated!


Answers:
author: Kris Dewachter
body: Hi [@Tim H_](/t5/user/viewprofilepage/user-id/519831) ,

I think the only option you have here is to remove, or limit the use of, the ALL transitions.

Should the ALL transition be available to all users / agents ? Or only supervisors ?

What's the use-case for those ALL transitions ?

Best regards,

Kris

comments: author: Tim H_
body: Hi [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)

thanks for your reply. I removed the ALL transitions and created transitions from each status to each other except from/to the approval step. It now works.

Tim


Tags: approver

condition

jira-service-management

jira-service-management-server

server
AVG time from Time to first responses
Asked by Alexander:

Hello, colleagues!  
I wanted to ask a question and ask for your tips, because in the issue section - in the SLA success rate report, display the Time to first responses metric not in % ratio, but in time (in minutes)

, or for example, how to create a new issue? Which will display the average time of completed tasks based on (start: when the status is in progress; end: when the status is completed)


Answers:
author: Danut M _StonikByte_
body: Hi [@alexandr](/t5/user/viewprofilepage/user-id/5416354),

Have a look over sections 3 and 4 from this article from our blog on how to measure average time of completed tasks between "In Progress" and "Completed":

[An effective dashboard for Service Desk and Customer Support teams in Jira Service Management](https://blog.stonikbyte.com/2023/05/15/an-effective-dashboard-for-service-desk-and-customer-support-teams-in-jira-service-management/)

Danut.  
Disclosure: I am part of the team that develops the gadgets described in the article.


Tags: cloud

jira-service-management

jira-service-management-cloud
Do I have to online push after online editing?
Asked by Mat Jung:

My repository contains a commit like  
README.md edited online with Bitbucket  
Not in the Master Branch.  
I was using the online editor for updating the text file.  
The local git does not reflect that change.  
Do I have to online push, before the local git will see the change?  
I expected that something like git pull would update the local repo with new information.  
But it did not.  
So I am wondering, how I have to use the online editor so that the local git sees the change.  
My current thinking is. That I don?t know where the online push button is.


Answers:
author: Mat Jung
body: I was not able to repeat or deliberately provoke the problem.

The git client from yesterday is not alive anymore.

Todays pulling worked as expected.

Answer: No, there is no online push button available.

A commit (Approved) will be sufficient for distributing new information to git clients.


Tags: cloud

editor

git
I cannot add ssh key
Asked by anandabiswas1991:

Someone has already added that SSH key to another account.


Answers:
author: Vinicius
body: Hi, [@anandabiswas1991](/t5/user/viewprofilepage/user-id/5045463), welcome to the Atlassian Community! :)

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,  
Vinicius


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This means that you are trying to re-use an ssh key that you've used with another account, you gave a key to someone else, or they shared a key with you. You should not do that. keys should be unique to an identity.

You can ask Atlassian where it might have been used, but the best thing to do is create a new key for your new account and not share it.


Tags: bitbucket-cloud

cloud
When selecting Plan your upgrade, Upgrade to is grayed out at current version 7.17.1 LTS?
Asked by Adam.Trocki:

We are attempting plan to upgrade to bring current, we are currently on 7.17.1 LTS. When going to the Plan your upgrade within system settings, on the right side, instead of showing the most current version the option is grayed out and it displays 7.17.1 LTS saying we are on the recommended version.

How to resolve so we can continue the Plan your upgrade checks.

Thanks in advance,

-AT


Answers:
author: Support Team _Clearvision_
body: Hi Adam,

The only thing that springs to mind is if your License has expired and so doesn't support upgrades anymore?

You can check the expiry from Settings\>Licensing.

comments: author: Adam.Trocki
body: That answer is hopeful. It does note the license to expire within 30 days.

I will check it out and let you know.

Thank you for the post!

-Adam


author: Adam.Trocki
body: Unfortunately, this did not do the trick.

Thanks for the reply.

-Adam


author: Support Team _Clearvision_
body: Worth checking, sorry that wasn't it. I tried replicating it on the same version but it shows as normal.

Might be one to raise to Atlassian directly.


Tags: bitbucket-server

server
Issue deploying jar on Azure spring apps!
Asked by Pandhi Jaya Prakash:

Hi team,

I have been using bitbucket pipeline to build the java code(Jar) through Gradle as my build tool and able to get the clean build and trying to deploy jar in to azure spring apps through azure service principal and passed all azure cli commands to deploy jar into spring apps.

getting below error so please help to get rid of this issue.

ERROR: The command requires the extension spring. Unable to prompt for extension install confirmation as no tty available. Run 'az config set extension.use_dynamic_install=yes_without_prompt' to allow installing extensions without prompt.

**Note:** even though i have included below extension commands to update azure spring boot extensions.  
CLI_COMMAND: 'az config set extension.use_dynamic_install=yes_without_prompt'  
CLI_COMMAND: 'az extension add --name spring'  
Thanks in advance,


Answers:
author: Theodora Boudale
body: Hi [@Pandhi Jaya Prakash](/t5/user/viewprofilepage/user-id/5039949) and welcome to the community!

We would need some additional info to better be able to help you:

* Are you using the azure-cli-run pipe?  

* Can you share the exact command from the bitbucket-pipelines.yml that is failing you with this error? (please make sure to sanitize any private/sensitive data in the content, if any, before sharing here)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Folder and subfolder creation in the Bitbucket repository
Asked by Sasikumar Viswanathan:

Hi Team,

Have created the repository and cloned successfully, need to understand the folder structure of the Bitbucket repository. Aim to establish a repository with several directories and subfolders that looks like the screenshot in the attachment. Does Bitbucket have the potential? If so, kindly offer advice on how to create folders and subfolders in the repository.

Thanks in advance.

![Sample.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/218911i3899D14A7FFCC7F0/image-size/large?v=v2&px=999 "Sample.JPG")


Answers:
author: Erez Maadani
body: Create the required structure and add your files. GIT will keep the folder structure for non empty folders.

You can also use empty dot files to help pushing empty folders

```
git add folderA/folderB/.ignore folderC/file2.txt folderC/folderD/file3.txt
...
```

Will create the repo as following:

/-

- folderA/

- folderB/

- .ignore

- folderC/

- file2.txt

- folderD/

- file3.txt


Tags: bitbucket-server

server
Making bitbucket cloud/static website access private
Asked by Krishna Kumar Singhal:

I'm using bitbucket cloud to host my website/test results, I need to control who can access that page.

My repo: [https://bitbucket.org/\*\*\*\*\*/\*\*\*\*\*.bitbucket.io/src/main/](https://bitbucket.org/krishnatest1/krishnatest1.bitbucket.io/src/main/)

I want people who have access to the workspace to be able to access the wesbite:

[https://\*\*\*\*\*.bitbucket.io/](https://krishnatest1.bitbucket.io/)

Any help would be appreciated, will it be good to host this using an S3 instance?


Answers:
author: Ben
body: Hey Krishna,

As per our documentation - Bitbucket Cloud static websites are viewable regardless of the repository privacy settings, meaning that anyone can view the static website.

For example, if the repository itself was private, access to the website is public - however, the repository data is not:  
<https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/>

If you need the website to be private, I would suggest using another hosting service for your purposes.

As this is a public discussion forum, I have censored the website/repo link you have included.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Krishna Kumar Singhal
body: Hi Ben,

Thanks for your reply, I had reached the same conclsion, just hoped that the static pages would work and will not have to use another hosting service.

Thanks again

Krishna


author: Augusto de Paula
body: This is a security breach since the website is part of the repository which is under access control. If someone doesn't have read access to a repository they shouldn't have also access to the html pages that are **inside**that said repo.


Tags: bitbucket-cloud

cloud
Hi can anyone help me to solve this error
Asked by Abu Bakir Uralov:

INFO: Uploading app.zip to S3.  
aws s3 cp app.zip s3://jss-codedeploy-deployment/ ion-jss-498-becbe869  
Invalid endpoint: <https://s3>. us-east-1.amazonaws.com  
?? Failed to upload app.zip to S3.  
when I use environment variables my pipeline is going through, but when I add those parameters to my deployment variables having this error


Answers:
author: Syahrul
body: Hi [@Abu Bakir Uralov](/t5/user/viewprofilepage/user-id/5032404)

G'day.

The error is generally caused by invalid region settings, so can you verify if you've configured your region correctly in the pipe?

That said, I suggest enabling Debug option in the pipe to create a more verbose log. This will give more idea to why it's failing.

You can check the pipe page [here](https://bitbucket.org/atlassian/aws-s3-deploy/src/master/) to understand how to enable debugging:

```
script:  - pipe: atlassian/aws-s3-deploy:1.1.0    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: 'us-east-1'      S3_BUCKET: 'my-bucket-name/logs'      LOCAL_PATH: '$(pwd)'
 ?????DEBUG: 'true'
```

Cheers,  
Syahrul

comments: author: Abu Bakir Uralov
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) yes I have correct region, and also those variables are working on repository variables but they are not working on deployment variables


author: Syahrul
body: Hey [@Abu Bakir Uralov](/t5/user/viewprofilepage/user-id/5032404)

Noted, do you have a chance to enable the debug option and see if there are any specific errors in it?

Debug enable should generate a more in-depth verbose log which should help to identify why the pipe is failing to upload.

That said, you can also try to not set the region as a variable instead define it directly in the pipe and see if that works.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
how to enable git server hooks in 8.4.1
Asked by lin:

a clean fresh new bitbucket server

user:admin

home:/home/admin/atlassian/home

project and repository create

repository id:3

add a git hook script in directory:

/home/admin/atlassian/home/shared/data/repositories/3

admin@local$ tree hooks/  
hooks/  
??? post-receive  
??? post-receive.d  
? ??? 20_bitbucket_callback  
??? pre-receive  
??? pre-receive.d  
??? 20_bitbucket_callback  
??? 21_test

the \[21_test\] is the new script:

\`\`\`

#!/usr/bin/env bash

echo "test"

exit 1

\`\`\`

and the permission is fixed and checked:

admin@local$ ll  
total 8  
-rwxrwxr-x. 1 admin admin 416 Oct 3 19:21 20_bitbucket_callback  
-rwxrwxr-x. 1 admin admin 41 Oct 3 19:23 21_test

but the output application.xml from support zip file is:

\<repository\>  
\<id\>3\</id\>  
\<slug\>test\</slug\>  
\<name\>test\</name\>  
\<type\>git\</type\>  
\<approximate-size\>Unknown\</approximate-size\>  
\<state\>AVAILABLE\</state\>  
\<status-message\>Available\</status-message\>  
\<marked-public\>false\</marked-public\>  
\<is-public\>false\</is-public\>  
\<is-fork\>false\</is-fork\>  
\<is-remote\>false\</is-remote\>  
\<partition\>-1\</partition\>  
\<available\>true\</available\>  
\<branch-model\>  
\<inherited\>true\</inherited\>  
\<development-refId\>refs/heads/master\</development-refId\>  
\</branch-model\>  
\<jira-commit-checker/\>  
\<repository-hooks/\>  
\<pull-requests\>  
\<open-pull-requests\>0\</open-pull-requests\>  
\<merged-pull-requests\>0\</merged-pull-requests\>  
\<declined-pull-requests\>0\</declined-pull-requests\>  
\</pull-requests\>  
\<git-lfs\>  
\<enabled\>false\</enabled\>  
\</git-lfs\>  
\<configured-hook-scripts/\>  
\</repository\>

no git hook scripts detected and the hooks not work of course

i checked some docs like:

<https://confluence.atlassian.com/bitbucketserverkb/git-hook-scripts-are-not-executing-779171211.html>

<https://confluence.atlassian.com/bitbucketserverkb/how-to-create-a-simple-hook-in-bitbucket-server-779171711.html>

but nothing worked ever

how could i get the hooks work?


Answers:
author: lin
body: anybody could help me somehow?

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


Tags: bitbucket-server

hook

server
Trying to Add ssh key but get "Someone has already added ssh key"
Asked by Nadja Schnabel:

Trying to Add ssh key but get "Someone has already added ssh key"

At this stage I would like to find out where the ssh key has been added.


Answers:
author: Caroline R
body: Hi, [@Nadja Schnabel](/t5/user/viewprofilepage/user-id/2539566), thank you for reaching out to Atlassian Community.

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Unable to test dotnet project
Asked by Abir Stolov:

I'm trying to run dotnet test on a solution and unable to.

pipeline:

```
image: mcr.microsoft.com/dotnet/sdk:6.0

pipelines:

  default:

  - step:

      name: Build

      caches:

        - dotnetcore

      script:

        - dotnet restore

        - dotnet build --no-restore --configuration Release

        - dotnet test --no-build --no-restore -v d
```

If I remove the last line, \`dotnet test\`... than is it successful  
The error shown is:  

    Test run for /opt/atlassian/pipelines/agent/build/thresholds-module.tests/bin/Debug/net6.0/thresholds-module.tests.dll (.NETCoreApp,Version=v6.0)

    Microsoft (R) Test Execution Command Line Tool Version 17.3.0 (x64)

    Copyright (c) Microsoft Corporation. All rights reserved.

    The argument /opt/atlassian/pipelines/agent/build/thresholds-module.tests/bin/Debug/net6.0/thresholds-module.tests.dll is invalid. Please use the /help option to check the list of valid arguments.


Answers:
author: capjan
body: I found this answer on my search for the same error, so I'll answer it for the next ones coming here.

Look at the last 2 commands in your script:

```
- dotnet build --no-restore --configuration Release
- dotnet test --no-build --no-restore -v d
```

You are **building in Release configuration** but are **testing in Debug configuration**.

So the dotnet test command doesn't find any assemblies for running tests due to the **--no-build** switch.

In this case I think it would have been much more helpful for you (and me) if the error message had been a "file not found" instead of the less specific "argument is invalid".


Tags: bitbucket-pipelines
Unable to display a button on the pull request overview page using ScriptRunner
Asked by Tamir.Kucherov:

Hello,

I try to create a button on bitbucket pull request overview page using ScriptRunner, but for some reason it doesn't appears.

This button should open additional custom form.

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

**My actions are:**

1. Login to bitbucket admin page -\> SCRIPTRUNNER -\> Fragments
2. Create Fragment -\> Custom Web Item
3. Fill all fields while specifying in section field: bitbucket.pull-request.toolbar.actions
4. Click on Update
5. Refresh existing pull request. The button is missing

**Menu from step #2 \[custom web item\]:**

![WebItem.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/218882i0B844AB778CEA5F9/image-size/large?v=v2&px=999 "WebItem.JPG")

**My environment:**

Atlassian Bitbucket v7.17.10

ScriptRunner version: 6.55.1

Chrome Version 106.0.5249.91 (Official Build) (64-bit)

P.s: I also try to follow adaptavist documentation, but the pictures are missing: <https://docs.adaptavist.com/sr4bib/6.55.1/features/script-fragments/web-item>

**Code for myTestForm.groovy file \[just for the test\]**

*import com.atlassian.bitbucket.repository.RefService*

*import com.atlassian.bitbucket.repository.Repository*

*import com.atlassian.bitbucket.repository.ResolveRefRequest*

*import com.atlassian.sal.api.component.ComponentLocator*

*import com.onresolve.scriptrunner.parameters.annotation.RepositoryPicker*

*import com.onresolve.scriptrunner.parameters.annotation.ShortTextInput*

*import static com.atlassian.bitbucket.repository.StandardRefType.BRANCH*

*@RepositoryPicker(label = "Repository", description = "Enter the repository name")*

*Repository repository*

*@ShortTextInput(label = "Branch", description = "Enter the branch name")*

*String branchName*

*def refService = ComponentLocator.getComponent(RefService)*

*refService.resolveRef(new ResolveRefRequest.Builder(repository).with {*

*type(BRANCH)*

*refId("refs/heads/${branchName}")*

*}.build())*

Can you assist please?

Thanks! Tamir


Answers:
author: Yoni Segal
body: [@Tamir.Kucherov](/t5/user/viewprofilepage/user-id/5044860) did you ever figure this out?


Tags: bitbucket-server

script

scriptrunner

server
Unable to push cahnges after commit in bit bucket
Asked by Narisetty Anusha:

the error is below which i am facing. Can you please help me with this.![MicrosoftTeams-image (3).png](/t5/image/serverpage/image-id/218838i45BCC5370F6704CE/image-size/large?v=v2&px=999 "MicrosoftTeams-image (3).png")


Answers:
author: Zaman Khan
body: The Format Which is providing Good Content Like [PTCL Bills](https://bills.com.pk/ptcl-duplicate-bill/). Which is possible for the new generation


author: Fabio Racobaldo _Herzum_
body: Hi [@Narisetty Anusha](/t5/user/viewprofilepage/user-id/5044661) ,

welcome to the Atlassian community!

It seems that some pre-receive hook is failing and you can't push your changes.

Please verify hooks associated to your repo. In my opinion, there's a pre-receive hook associated to JIRA. Verify the Application links between JIRA and Bitbucket.

Hope this helps,

Fabio


Tags: bitbucket-server
blocking when adding a public key
Asked by Will Wang:

as title

after I clicked "Add key", it blocked there.

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


Answers:
author: Caroline R
body: Hi, [@Will Wang](/t5/user/viewprofilepage/user-id/5044503), welcome to the community!

I tried to reproduce this behavior, but I was able to add the ssh key to my Bitbucket account.

I see you have some SSH keys added to your Bitbucket account, so I would like to confirm if you are still facing this issue. In case you are, could you please confirm the browser you are using to add this key? Could you test this in an incognito window?

Looking forward to hearing from you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud