youngmon/atlassian-qna huggingface dataset:
Accessing a JsonArray syntax?
Asked by Angela Brown:

I'm trying to access information from a JsonAray, but I think I'm getting the syntax wrong. I'm using automation to post as a comment to the ticket just to try to see what values I'm actually processing.

If I call

```
{{webResponse.body.results.version.number.asJsonArray}}
```

then I'll get
> \[1,1,14\]

But I can't actually access that as an array. No matter what I have done, I haven't been able to successfully access any elements of that array individually. I would have expected

```
{{webResponse.body.results.version.number.asJsonArray[0]}}
```

to work, but that gets me no response. What's the syntax I should be using?


Answers:
author: Angela Brown
body: I ended up getting this to work; I had overcomplicated it. What worked was:

```
webResponse.body.results.version.number.get(2)
```


author: Darryl Lee
body: I think you need to use the list.get(index) operator:

```
{{webResponse.body.results.version.number.asJsonArray.get(0)}}
```

Source: [Jira smart values - lists](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/)

comments: author: Angela Brown
body: That still returns nothing for me.


author: Darryl Lee
body: Hrm, how about:

```
{{webResponse.body.results.version.number.asJsonArray.first}}
```

or

```
{{webResponse.body.results.version.number.asJsonArray.last}}
```

?


author: Angela Brown
body: Nothing for that, either :(


author: Darryl Lee
body: Now I'm just throwing out ideas, but what if you use:

```
{{webResponse.body.results.version.number.asJsonStringArray.first}}
```

?


author: Angela Brown
body: Sorry, haven't had time to try this until today. Still nothing, though =/


Tags: json
The version of Jiri in which the automation functionality is available
Asked by ???????:

Please tell me, what version of automation functionality is available for the server type? Or is this functionality only for the cloud?


Answers:
author: Jack Brickey
body: [@???????](/t5/user/viewprofilepage/user-id/4736874) , which add-on automation app are you referring to? You can check the [Marketplace](https://marketplace.atlassian.com/search?hosting=server&query=Automation%20) for the app in question and check version there. For example Automation for Jira versions shows - Version 7.4.0?Jira Server 7.7.0 - 8.21.1, Released: Oct 26th 2021

comments: author: ???????
body: [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) It meant that the functionality for creating rules for automating work with tasks (see Fig.). Now I have server-type jira 7.12.0. But it doesn't have this functionality.

![Screenshot 2022-02-08 164413.png](https://community.atlassian.com/t5/image/serverpage/image-id/182277iC39CBE17298363B0/image-size/large?v=v2&px=999 "Screenshot 2022-02-08 164413.png")


author: Jack Brickey
body: that is Automation for Jira which is currently at Version 7.4.0?Jira Server 7.7.0 - 8.21.1, Released: Oct 26th 2021


author: Bill Sheboy
body: Hi [@???????](/t5/user/viewprofilepage/user-id/4736874)

Yes, and...to what Jack notes: here is the release note page for information about Server/Data Center Automation for Jira: <https://confluence.atlassian.com/automation/automation-for-jira-release-notes-1018767858.html>

Kind regards,  
Bill
Is it possible to create a rule to update the status of a card in Zephyr ?
Asked by Jerson Ramirez:

Currently I have a rule that when a card is moved from To Do to In Execution it triggers a Jenkins pipeline. The issue type of the card is test, and I have it linked to a Zephyr test cycle, so the status should change from "unexecuted" to "WIP" or in some cases pass or fail.

Do you know if automation rules allows to modify these Zephyr values?


Answers:
author: Curt Holley
body: Hi [@Jerson Ramirez](/t5/user/viewprofilepage/user-id/4747311)   

Welcome to the community.

Not out of the box it doesn't no..... As Zephyr is a 3rd party plug-in.   
Might be doable via webhooks/ custom API integration.  

Have a look at this: [Zephyr for Jira REST API Overview - Create Custom Zephyr Integrations - YouTube](https://www.youtube.com/watch?v=VXwCKHdQIYw)

comments: author: Jerson Ramirez
body: Thanks [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535)


author: Charlie Gavey
body: Hi Jerson,  

I've linked your suggestion to this feature request on the public tracker, which counts as an upvote:  

<https://codebarrel.atlassian.net/browse/AUT-1295>

Cheers,

Charlie


Tags: cloud

zephyr
which type of API to get zephyr test content with python
Asked by Praveen Kundavaram:

I want to understand which type of API to get zephyr test content with python

can you please suggest to me advance in thanks


Answers:
author: Bernhard Sessner
body: Hi there, maybe this can be of use for you:

<https://bitbucket.org/melectrification/python-zephyr/src/master/>


author: Maksim Marholin
body: Hi [@Praveen Kundavaram](/t5/user/viewprofilepage/user-id/4746346)

thanks for your question.

I'd suggest raising this with <https://getsupport.atlassian.com/>.

Cheers,

Maksim


author: Prince Nyeche
body: Are you asking what type of python module can be used to retrieve content from Zephyr API? If that's the question, then you should focus on the **requests** API.


Tags: cloud
What's wrong ?
Asked by ???????:

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


Answers:
author: Dirk Ronsmans
body: Exactly what it says.

You are trying to clone an issue to another project/issuetype and not all the fields are available on that new issuetype or in that new project.

Check you field context/field configuration to verify
How can you tell which automation rule(s) have run against a particular story?
Asked by Randy O_Neal:

We have what I consider to be a large number of automation rules in our Jira instance, and I'm seeing the results of some automation in some of our stories... primarily labels being written to subtasks. I can't seem to identify which automation rule is responsible for the actions being taken. Looking in the history of the stories in question, all I see is a message stating "Automation for Jira updated the Labels 3 days ago".

Digging through the automation logs has so far not revealed which automation rule is responsible; I may have not yet been successful searching for the right item... I am looking to see if there's a simpler way to ascertain which automation rule has updated a particular issue... are there any shortcuts into this, or am I solely left to searching the automation logs?


Answers:
author: Mark Segall
body: Hi [@Randy O_Neal](/t5/user/viewprofilepage/user-id/4270808) - Absolutely this is possible. In the issues detail, you should be able to see a field called **Automations** with a clickable link *Rule Executions* that will give you a history of all rules that have executed against the issue:

![2022-02-07_07-53-23.png](https://community.atlassian.com/t5/image/serverpage/image-id/182010iC65A0E16425BD4C5/image-size/large?v=v2&px=999 "2022-02-07_07-53-23.png")

comments: author: Randy O_Neal
body: Thanks... this is exactly what I was looking for, and it fills in the puzzle!


author: Bill Sheboy
body: Hi [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637)

For my Jira Cloud instance, that feature only shows the last 8 rule *executions* run against an issue. Are you seeing something different?

Thanks,  
Bill


author: Randy O_Neal
body: Bill,

It seems I'm seeing the same limitation... the last 8 automations are what I'm seeing. I'll admit I am rather new to automations; I've known about them and studied them "on paper" for a while, but I don't have a lot of practical, hands-on experience with them. It would seem like there would be a comprehensive log on this somewhere, though I suppose a poorly written automation could potentially fill up a dozen logs quickly.


author: Mark Segall
body: I don't see any formal documentation on this behavior, but yes appears to be the case.

Note - You can see up to 90 days from the rule's main audit log if you wanted older, but you'd have to do a bit of investigation to find specific issue activity by cross-referencing the issue history with a matching rule execution time.


author: Venkatesh Prasad
body: Is there a similar field available for Jira Data Center version aswell ?


author: MEDITECH ADMIN TEAM
body: I'd be interested in a feature/field like this for Data Center as well.
By creating new sprint a new story is created in THIS new sprint (automation)
Asked by Jeroen Kotterlink:

HI all,

I'm creating an automation that when I create a new sprint, a new story is created in this sprint.

I already managed to do this, but when I create a new sprint again, the new story is not created in the new sprint but in the first created sprint after the active sprint.

How can I create this in the new created sprint? I tried several routes in "automation" but so far I didn't succeed.

I hope you can help me.

Thnx.


Answers:
author: Karen Davis
body: Hi Jeroen,

I encountered a similar situation recently, and this article helped me immensely; <https://www.adamnengland.com/2021/01/26/jira-automation-populate-your-sprint-with-stories-on-creation/>. I hope it helps you as well.

Karen

comments: author: Jeroen Kotterlink
body: Thnx Karen, it works.


author: Bill Sheboy
body: Hi [@Jeroen Kotterlink](/t5/user/viewprofilepage/user-id/4672976) -- Welcome to the Atlassian Community!

Would you please post images of:

* your automation rule and
* of the audit log details, showing the case when the created issue is added to the incorrect sprint?

That will provide some context for the community to suggest ideas. Thanks!

I suspect you are getting the sprint information (for the issue create) from JQL rather than from the triggering sprint created. The images will help confirm that, and what to update for a fix.

Kind regards,  
Bill

comments: author: Jeroen Kotterlink
body: ![Jira1.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/182168iA855436A3A2EB5BA/image-size/large?v=v2&px=999 "Jira1.JPG")![Jira2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/182167iD2197E9E111DB2D0/image-size/large?v=v2&px=999 "Jira2.JPG")

When I create a new sprint, the first sprint after the active sprint is filled with the new created story. As soon as I create another sprint, the new story is not created because it checks the sprint after the active sprint, this one is not empty, so create nothing. But it had to create a story in the latest and empty sprint.

I'm missing JQL experience to solve this, I guess.


author: Bill Sheboy
body: Thanks for that information. If I understand your case correctly, you want to automatically add an issue when the sprint is created.

Using the trigger of sprint created, you should not need to perform any additional tests as the sprint will be empty if just created. Perhaps try this:

* trigger: sprint created
* action: create issue, assigning it to the new sprint with {{sprint.id}}


author: Jeroen Kotterlink
body: Thnx, it works


Tags: sprint

story
Not receiving invitation from bitbucket to join a workspace
Asked by viroldi:

Hi

I just started working for new employer, but I am not able to access their bitbucket workspaces. I am not receiving any invitation emails that are supposed to have been sent. I don't understand why it doesn't work.

I have checked my spam folder, but it is empty.


Answers:
author: Ben
body: Hi viroldi,

I have just unsuppressed your email address from our list as it appears that we received some SMTP bounces from your mail server. Are you able to ask the admin to cancel the invitation and re-send it?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: viroldi
body: Hi! Thank you for the help, but unfortunately it is not working yet, we have tried to cancel the old invitation and send a new one but it didn't arrive


author: Ben
body: Hi again [@viroldi](/t5/user/viewprofilepage/user-id/5447564)

Are you sure that you are referring to the email address that you have logged this community ticket with v\*\*\*\*\*@s\*\*\*\*\*t\*\*.com? (Censored as this is a public forum).

I have not seen any emails sent to this address since 08/03/2024 and they don't appear to be sent by us.

Please search your inbox for the following Atlassian email address - this is the address that sends invitations:

* noreply@am.atlassian.com

If you are still having issues, please let me know.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I want to have my username as maxbitz in bitbucket
Asked by Syed Subtain Haider:

I am owner of domain maxbitz.com and I am trying to create account on bitbucket with username "maxbitz" but I am unable to create this account.  

Is there any way to get help from support which will allow me the username for my organization so that I can purchase bitbucket subscription and use for my organization with official name


Answers:
author: Theodora Boudale
body: Hi [@Syed Subtain Haider](/t5/user/viewprofilepage/user-id/5447483),

I have created a support ticket on your behalf and my team will look into your request.

I created the ticket using the email of your community account. You should have received an email with a link to the ticket.

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

Kind regards,  
Theodora


Tags: unknown-hosting-type
How to prevent pull request approve option for author
Asked by B Arjun:

can you please help me on the how to disable pull request approve option for author.


Answers:
author: Saxea _Flowie_
body: Hi [@B Arjun](/t5/user/viewprofilepage/user-id/5447491)

I'm afraid this is not possible, however self approving does not count towards the merge checks. Is there another reason why you would like to disable it?

comments: author: B Arjun
body: Thanks [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) . I am new for bitbucket, In GitLab we have an option to disable or enable approve button with author. that's why I asked is there any option to disable approve button for author.


Tags: bitbucket-cloud

cloud
When I redirect to /branch it shows someone else's workspace
Asked by Emre KAS:

I guess it's the same for everyone. When I try to access [this link](https://bitbucket.org/branch/), it shows someone else's workspace and projects. I don't have any permission to do anything, but I think it's still a bug.


Answers:
author: Theodora Boudale
body: Hi [@Emre KAS](/t5/user/viewprofilepage/user-id/5447451) and welcome to the community!

This is expected behavior. The link <https://bitbucket.org/some-text/> will redirect you to the workspace with id **some-text**.

If the workspace is set to private and you don't have access or if it doesn't exist, you will see a 'Resource not found' error.

If the workspace exists, it is not private, and you don't have explicit access, you will see the workspace's profile and its public content (if any).

In this case, you see the workspace someone else created with the id **branch**.

Just a heads up, I removed the name from your post for privacy reasons. I know the name is visible on the workspace's page, but it's best not to post other people's names in a public forum.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bug

cloud

permission
When PR is merged 4 components out of 6 components only updated in the target branch .Why?
Asked by Rajesh Talathoti:

partial PR merge


Answers:
author: Theodora Boudale
body: Hi [@Rajesh Talathoti](/t5/user/viewprofilepage/user-id/5447149) and welcome to the community!

The most likely reason is that another commit on the destination branch undid the changes you introduced with the PR.

If you use the following command in a clone of your repo you will get all commits that changed this file and the changes each commit introduced:

```
git log --full-history --all -p -m -- file.txt
```

You can use it to inspect the commits that changed this file (replace **file.txt** with the file path and name).

Please execute **git fetch** on your clone before running this command, to ensure your clone has all the updated refs from the remote repo.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pipe for azure webapp deployments using container registry image
Asked by Andrea Calderon:

Hi,

We want to deploy a WebApp from pipelines using a image from Azure Container Registry, or If is possible deploy a container, but I'm not able to find a pipe for that.

What should be recommended for WebApp deployments with Azure Container Registry?

Thanks for the help.


Answers:
author: Igor Stoyanov
body: Hi [@Andrea Calderon](/t5/user/viewprofilepage/user-id/5446942) . There is a [Bitbucket pipe to push to Azure Container Registry.](https://bitbucket.org/atlassian/azure-acr-push-image/src/master/)

```
- pipe: atlassian/azure-acr-push-image:0.3.0  variables:    AZURE_TOKEN_NAME: "<string>"    AZURE_TOKEN_PWD: "<string>"    AZURE_REGISTRY: "<string>"    IMAGE_NAME: "<string>"    TAGS: "<string>" # Optional    # DEBUG: "<boolean>" # Optional
```

More pipes for Azure you could discover at the [Bitbucket Pipes Marketplace.](https://bitbucket.org/product/features/pipelines/integrations?&search=azure)  

Regards, Igor


Tags: azure

bitbucket-cloud

cloud

container

deploy

webapp
Need to Install Bitbucket Data Center as a container with non root user
Asked by Ashish Thakur:

How can we install Bitbucket as non root user as a container without using Security Context, which is going to get deployed in openshift (RHEL)?

We are not suppose to use any statefulsets as well as init containers, which will do any prior setup for bitbucket!


Answers:
author: Yevhen
body: [@Ashish Thakur](/t5/user/viewprofilepage/user-id/5446887) perhaps you will find official docs helpful <https://atlassian.github.io/data-center-helm-charts/platforms/openshift/OPENSHIFT/>


Tags: bitbucket-server

server
Fatal errors when cloning with Git clone https
Asked by Noel Harland:

Just installed Git on Windows 11 laptop. Created a repository called Git_Learn with some default files.

Using git clone https://{user}@bitbucket.org/{AccountName}/git_learn.git

Authentication is AOK but I receive a couple of different errors if I repeat the command.

fatal: unable to access '<https://bitbucket.org/{accountName}/git_learn.git/>': Failure when receiving data from the peer

And

error: RPC failed; curl 56 Failure when receiving data from the peer  
fetch-pack: unexpected disconnect while reading sideband packet  
fatal: protocol error: bad pack header

I've turned off anti-virus and added <https://bitbucket.org/> to trusted sites just in case.

My internet connection seems fine, I have another laptop (work) and it all works fine on that. Which is unusual as it's far more restrictive.


Answers:
author: Syahrul
body: G'day, [@Noel Harland](/t5/user/viewprofilepage/user-id/5446904)

Welcome to the community.

The error typically happens when the default postbuffer is smaller than the data you try to push. So, could you try to increase your git post buffer and see if that helps?  

```
git config --global http.postBuffer 157286400
```

Regards,  
Syahrul

comments: author: Noel Harland
body: Thanks, I tried that but it didn't make any difference, I'm not doing a push, I'm doing a clone of a very small archive 3,359 bytes.

I have another laptop that works fine, it's a work laptop on a vpn and connects with SSO and much larger repositories.

The clone works sporadically. Mostly fails but occasionally works.


author: Syahrul
body: Hey [@Noel Harland](/t5/user/viewprofilepage/user-id/5446904)

Thanks for the update. We may need more logging to determine the issue, but if it's intermittent, I suggest changing the connection from HTTPS to SSH to see if it's reproducible.

This will help us see whether it's a local network issue.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
I can see user in developer group, but he can't see repo
Asked by Yalcin Yilmaz:

Hi all.

I'm admin -- I invited a developer to a workspace. He accepted: got an error first, but then ended up on my developers group anyway.

As far as I can see, he is an active developer user.

He can see the repositories in other workspaces, but not mine.

Few things of note:

1. I migrated the repo from another Atlassian account/workspace altogether. When I moved companies I now have a second personal Atlassian account because I have a second company email. I could not use my old pub key (as it was attached to my original email login).
2. I now have a second Atlassian company account, a new personal user account and SSH pub key for it.
3. The external developer in question used to also access the repo back when it was in the old Atlassian account / workspace. However he still uses his same personal login. His email or personal account has not changed.
4. I simply invited him to the new workspace, to continue working on the migrated repository.

Now when he logs into Bitbucket, he can still see his old repos (in other workspaces), but not the migrated repo in the new workspace that I invited him to.

Any ideas?


Answers:
author: Theodora Boudale
body: Hi [@Yalcin Yilmaz](/t5/user/viewprofilepage/user-id/5443538) and welcome to the community!

When a user logs in to <https://bitbucket.org/>, they get redirected to the last workspace they accessed (excluding their personal workspace, if they have one). The user may be looking at a different workspace. Can you please ask him to follow these steps:

1. Log in to <https://bitbucket.org/>
2. Select the avatar (top right corner) \> **All workspaces**

Does he see see on that page the workspace you invited him to?

If so, he can select the workspace name, and then select **Repositories** from the top menu to see the workspace's repos (the ones he has access to).

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud