youngmon/atlassian-qna huggingface dataset:
How to not have spaces between lines in code block?
Asked by Nathan Slager:

In confluence there are spaces added between lines:

![Screenshot from 2024-05-24 15-06-11.png](/t5/image/serverpage/image-id/325900i483E89B4999FAA3E/image-size/large?v=v2&px=999 "Screenshot from 2024-05-24 15-06-11.png")

How to remove these such that it appears as it does in most text editors:

![Screenshot from 2024-05-24 15-07-11.png](/t5/image/serverpage/image-id/325901i5B5264D7782B4BF7/image-size/large?v=v2&px=999 "Screenshot from 2024-05-24 15-07-11.png")


Answers:
author: Kristian Klima
body: Hi [@Nathan Slager](/t5/user/viewprofilepage/user-id/5505539) and welcome.

I'd argue that there ARE spaces between the lines in most text editors. Maybe there's a marketplace code block app with more customization options.

Let's turn this around. What's your use case? A table with code sample?

|------------------------------------------------------------------------|---|
| ``` az extension remove --name ml az extension add --name ml --yes ``` |   |
| ``` ? ```                                                              |   |

This side of specialized editors/characters (that give an appearance of a single vertical line) I've never came across an uninterrupted vertical line.

And I've been thru many (including those on mainframes in zOS :) )![2024-05-25_10-16-18.png](https://community.atlassian.com/t5/image/serverpage/image-id/325913i159139B1B78FDEB0/image-size/large?v=v2&px=999 "2024-05-25_10-16-18.png")


Tags: cloud

code-block

confluence-cloud
Unable to find "User Macro" to create custom Macro
Asked by Andre Schoeman:

I am an admin within Confluence however I'm unable to find the "User Macro" section that will enable me to create custom Macros. Can someone please advise what I'm missing or what I'm doing wrong?


Answers:
author: Roma Bubyakin
body: Hello Andre,

Welcome you to the Community!

Unfortunatelly, Atlassian decided not to implement User Macro on Confluence Cloud.

There are two options here:

Develop your own app (e.g. with [Forge](https://developer.atlassian.com/platform/forge/manifest-reference/modules/macro/))  
Use 3rd-party apps from the marketplace (e.g. our [User Macro for Confluence Cloud](https://marketplace.atlassian.com/apps/1232013/user-macro-for-confluence-cloud?hosting=cloud) app)

Regards, Roman  
Wombats Corp, CEO


author: John Macy
body: Thanks - I am using Cloud


author: Andre Schoeman
body: "User Macros" is only availible for Confluence on-premise


Tags: cloud

confluence-cloud
Asset macro: Include inbound references
Asked by Sal:

Hey there!

We're trying to make use of the new Asset Macro for Confluence. What I'm trying to achieve is including inbound references for an object. Example scheme:

Object type "Application"

- App 1

- App 2

Object type "Server"

- Server 1 with reference to "Application"

In confluence I have a page "Applications" where I am querying all Applications and get a table back. So far so good. But is there a way to include a column "Servers" that include all the servers this application is installed on? The inbound reference on the Application is there.

Edit: Added Screenshots and current query

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

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

Current query: objectType = Applikationen AND NAME LIKE "APPNAME"

Cheers!


Answers:
author: Luis Pellacani
body: Hey [@Salomon H?seli](/t5/user/viewprofilepage/user-id/4898714),

Welcome to the Atlassian Community!

According to [our documentation](https://support.atlassian.com/confluence-cloud/docs/display-your-assets-data-on-a-confluence-page/), when searching for the apps via AQL and getting the results, you can add other attributes by going to :board: at the top of the column, then select from the dropdown menu. What options are available to be added on the dropdown?

Hope this helps.

Cheers,

Luis Pellacani

comments: author: Sal
body: Hey [@Luis Pellacani](/t5/user/viewprofilepage/user-id/5180638)

Thank you for the link. So far I don't see the needed values in the dropdown. We've updated our scheme so I have a new example:

Server -\> Location -\> Customer = Server "is located at" Location "belongs to" Customer

My AQL is:

```
objectType in objectTypeAndChildren("Server") AND object having outboundReferences(Customer = "CUSTOMER NAME","Is located at")
```

Result:

Asset-ID, Asset-Name

1, Server1

2, Server2

In the board dropdown I do not see the customer name or any other value from an other object type other than "Server".


author: Luis Pellacani
body: Hey [@Salomon H?seli](/t5/user/viewprofilepage/user-id/4898714) ,

Thanks for the update. Upon further investigation, it appears reference object attribute values displayed on links are not available on the macro.

We currently have a feature request to include more options to be available as columns:

* [JSDCLOUD-13838 - Ability to add reference object attribute as additional column in the Assets macro](https://jira.atlassian.com/browse/JSDCLOUD-13838)

We suggest you watch and vote for this improvement since it helps to raise its visibility, as per our [New Features Policy](https://confluence.atlassian.com/cloud/new-features-744721668.html), and all future updates will be shared there.

Cheers,

Luis Pellacani


Tags: asset-management

cloud

confluence-cloud
DateDiff on custom column in Table transformer not working
Asked by Charles Middlebrooks:

I am using Table Transformer to uses the "Create" column to create a new column "MTTR Projection" that adds days to the create column. I then created an additional column to calculate the difference between the new "MTTR Projection" column and the "Resolved Column" called "MTTR Variance".   

I feel like this was working previously but now just loads 0 even when there is a resolved date. I'm wondering if its the date format, or if my SQL isnt written correctly to reference a previously created column.

SELECT \*,  
FORMATDATE(DATE_SUB(T1.'Created', INTERVAL -126 DAY)) as 'MTTR Target',  
DATEDIFF(day,T1.'Resolved', 'MTTR Target')  
AS 'MTTR Variance'  
FROM T1

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


Answers:
author: Stiltsoft support
body: Hi [@Charles Middlebrooks](/t5/user/viewprofilepage/user-id/5416444) ,

To refer to the previously created virtual column, you need to use an internal SELECT:

* In the internal SELECT you create the 'MTTR Target' column
* In the external SELECT you refer to the 'MTTR Target' column for further operations

So, your query will be as following:

SELECT \*,  
DATEDIFF(day, 'Resolved', 'MTTR Target')  
AS 'MTTR Variance'  
FROM  
(SELECT \*,  
FORMATDATE(DATE_SUB(T1.'Created', INTERVAL -126 DAY)) as 'MTTR Target'  
FROM T1)

Please note that in the internal SELECT we can refer to the columns as T1.'Column_name'. But in the external SELECT we use only 'Column_name' syntax as we now refer not to the original T1 table but to a modified one.

Also I noticed that your date format for the 'MTTR Target' differs from the 'Created' and 'Resolved' fields. You may go to the macro settings tab and set the date format as "M d, yy" (or add hours and minutes if required as well).

Hope this helps your case.

comments: author: Charles Middlebrooks
body: Thanks, thats perfect. Thanks for explaining as well.


Tags: filter

table

table-filter

table-filter-and-charts

table-filter-charts-spreadsheets

table-transformer

unknown-hosting-type
Projects are gone/deleted on Free Plan
Asked by jbburns:

I have a Free Plan and have logged in every so often to keep my namespace/projects active. Yet I login today, and Jira prompts me to signup for their new "Projects" beta... Now I'm wondering where all my old projects went? I can't view the Audit Log or contact Support since I'm on the Free Plan.


Answers:
author: jbburns
body: Nevermind I was looking at atlassian.com, not mynamespace.atlassian.net. Very confusing


Tags: cloud

jira-cloud
Confluence Product Admin cannot manage spaces
Asked by Steve Melzer:

I created a new Product Admin in Confluence but she can only see (and manage) the spaces she created. If I also add her as a User to Confluence she can see all spaces but still can only manage the ones she created.

If she goes to Settings -\> Security -\> Space Permissions and chooses Recover Permissions on any project she then has admin access to that space.

Obviously she can click on every space she needs access, but then she would need to continue to do this for current spaces and any future space that is created (we did test this and she also doesn't have admin access to newly created spaces).

I tried removing all her Confluence permissions and then setting them back. This did not do anything.

Any idea what is wrong and why she doesn't have full Product Access even though she is in the right groups with the right product?


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Each Space has its own permissions, it isn't uncommon for the Product Admin not to have access or write permissions to all spaces.

You would need to look at some of the pre-existing spaces and see if there is a common 'admin' group and add her to that group if one exists.

comments: author: Steve Melzer
body: Thank you. I understand and saw a way to add a group to all spaces, which was very helpful.


author: Shawn Doyle - ReleaseTEAM
body: Glad you found a solution!


Tags: cloud

confluence-cloud
Show the formula by poiting the arrow on the field
Asked by Madhuri Latha:

Hi Team,

Can we show the formula on pointing the arrow on the field which is a calculated field.

Thanks,

Madhuri


Answers:
author: Jack Brickey
body: Hi [@Madhuri Latha](/t5/user/viewprofilepage/user-id/5488408) , unfortunately no, this ability is not available.


Tags: cloud

jira-cloud
Create card
Asked by Dr_Win_ST:

If I create a card on Board A, project 1 and I also want this card to be on another board.

Can we do that? if yes, how I can do it?

Thank you so much


Answers:
author: Dexter de Vera
body: Hi [@Dr_Win_ST](/t5/user/viewprofilepage/user-id/5540247) ,

Are you using Software project? What project type are you using? Company or team managed?

If your using software company manage project, You can update the board filter and include the project 1, so you can also see all the issues in projecy 1 also.

Hope it helps,

Thank you


Tags: cloud

jira-cloud
Time Tracking not popup
Asked by Research Square Company:

Hi,  

I'm facing an issue where the time tracking feature does not appear in the ticker. Could you please help us resolve this


Answers:
author: Irina Mosina _TechTime_
body: Hi there,

Are you using an app to track your time ? Like Tempo or EasyTime?

There might be a different setting to enable Log Work depending on which app it is used.

If you are just using the Jira that comes with the software to log time, it can be the project permissions that are preventing you from doing so.

Can you try clicking on "..." on the right side of the issue, can you see Log Work?

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

If not, can you please check your Project Settings/Permissions and check what is set for Work on Issues :

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


Tags: cloud

jira-cloud
Viewing Issue Types in the Backlog view with the Label field type
Asked by Graeme:

Hi everyone, I was wondering if someone could help me with a query? What I need is when using the Backlog board in Jira that I can see for each issue type the labels field highlighted. But not all the labels types just a selected two. I have two labels called D.o.R=TRUE and D.o.R= FALSE.  

I want in the refinement Meeting the that Team are able to distinguish which Issue type is True or False by the label. So they can start refining the next prioritised Issue Type. Have a look at the diagram below to help. Any help would be great! Thank you in advance!

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


Answers:
author: Dexter de Vera
body: Hi [@Graeme](/t5/user/viewprofilepage/user-id/5570586) ,

Welcome to the Atlassian community,

You can ask your team to use the quickfilter to select only the 2 label you want to appear when doing refining meeting.

In the Backlog view, you can see there is a label quickfilter (together with epic and type base on your screenshot).

Hope it helps,

Thank you.

comments: author: Graeme
body: Yeah, great answer! The only problem I have is that the team have created some many quick filters it's starting tol get confusing and we have even cleaned up the filters as well. I just want a more simpler approach.


author: Dexter de Vera
body: I don't think there is a better way to get only all the labels you want without using the quick filter or changing the board filter. If you want a one-click quick filter that will filter the 2 labels, you can create a custom quick filter and add this jql

***labels in ("D.o.R=TRUE", "D.o.R= FALSE")***

This will search all labels with D.o.R=TRUE or D.o.R= FALSE

Note that issues will still be included in the filter if many labels are selected as long as the D.o.R=TRUE or D.o.R= FALSE is included.

Thanks!


author: Graeme
body: Is it configurable to define what you want to see? In the diagram above it shows the epic type and status. Can you pick and choose what you want to see? If I was to create a custom field called D.o.R and have the two option of true and false from a drop down menu. Well then I could point towards the custom field D.o.R?

The reason why I am being so specific is that I want to implement the Definition of Ready Ready - D.o.R.R in the Product Backlog. So I want to separate the Product Backlog into a series of future Sprints. Each sprint Will have the average amount of PBIs completed per sprint. and for each future sprint the PBIs will be prioritised as per my product vision. this is important. I fear when creating a quick filter it will on list the PBIs without prioritisation.


author: Dexter de Vera
body: Sorry No, you can't. The epic, status, story points, priority, and assignee are the only fields editable (you can select directly in view) in the backlog, that are not configurable. Better to add a new status and use the status or use the priority instead.


Tags: jira-unknown-hosting-type

unknown-hosting-type
API Call Hygiene/Efficiency question
Asked by Matthew Schrader:

Hello, recently I have been in a collaboration at work to create a Py script that calls the JIRA API to do some automation.  

A short summary of the script:  

* Retrieves all open tickets assigned to a user.
* Creates a directory of the JIRA tickets as folders on their local desktop. Names each folder after the ticket number and project title.
* Creates subfolders based on ticket conditionals within each ticket folder for storing related project assets.
* Generates a .md file containing the ticket's project details in each folder.
* Copies specific template files into certain subfolders based on ticket conditionals.

This script combined with Windows scheduler could essentially mean that I never have to manually create a folder or perhaps even file for work again, so I've been excited.  

One thing however, I wanted to triple check that doing something like this would just involve ONE API call only. Our IT admin expressed some valid concern about this script stress testing our server if too many calls are made by too many people.   

The code can be found here if a look is desired:  

<https://pastebin.com/Gps3SvhR>


Answers:
author: Darryl Lee
body: Hi [@Matthew Schrader](/t5/user/viewprofilepage/user-id/5570523) - so looking at your code, I only can only see one API call:

```
 issues = jira.search_issues(f'assignee={username} AND status = "Open"')
```

Jira's API doesn't spawn or require multiple calls unless your users have more than 100 open issues assigned to them. In that case, you're going to have to implement [pagination](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion), which ***will*** require more API calls. One for every 100 issues. (You will need to set the **maxResults=100**.)

One thing that would recommend is using the **fields** parameter to ensure that you are only pulling fields you need: \["reporter", "summary", "description", "created"\]

This should optimize the call and make it as efficient as possible:

* [Search for issues using JQL (GET)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get)

WARNING: I'm not very good at Python :-} so you might need to [read the docs](https://jira.readthedocs.io/api.html#jira.client.JIRA.search_issues) and try a few things to get the **fields** bit to work. They say you can also use a comma-separated string:

* **fields** (*Optional* *\[* *Union* *\[* [*str*](https://docs.python.org/3.8/library/stdtypes.html#str)*,* *List* *\[* [*str*](https://docs.python.org/3.8/library/stdtypes.html#str)*\]* *\]* *\]*) -- comma-separated string or list of issue fields to include in the results. Default is to include all fields.


Tags: data-center

jira-data-center
Jira Accounts Deactivated for Multiple Users
Asked by Madhava Babu:

Hi Team,  

can you please help us to activate Jira Account's for in our Project.  
please guide how to do so.  

<br />

it is Urgent for us.  

Thanks \& Regards,  
Madhava G


Answers:
author: Cristian IONESCU
body: Hi Madhava,

* Click on the gear icon (??) in the top-right corner.
* Select **User management** from the dropdown.
* Click on filter and add Suspended
* Then select the user click on the (...) and select Restore![suspended.png](https://community.atlassian.com/t5/image/serverpage/image-id/342321iA581170EA2A308B0/image-size/large?v=v2&px=999 "suspended.png")![suspended2.png](https://community.atlassian.com/t5/image/serverpage/image-id/342322i1A87781FC028A801/image-size/large?v=v2&px=999 "suspended2.png")

After this:

* Navigate to the specific project you want to assign the users to.
* Go to Project settings \> People.
* Click Add People.
* Enter the user's name or email, select the appropriate role (e.g., Developer, Admin), and click Add.

comments: author: Madhava Babu
body: Hi [Cristian IONESCU](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5123296),  

thanks


Tags: cloud

jira-cloud
Como eu crio uma classe que contenha v?rios analistas dentro dela no campo da pesquisa?
Asked by Glauber Sakamae Ramon:

Como eu crio uma classe que contenha v?rios analistas dentro dela no campo da pesquisa?  

Exemplo:  
Como ?:  
assignee in (currentUser(), 712020:984c1958-2ee8-4ad3-853b-b018a9c56586) AND status in (Resolvido, Fechado) ORDER BY resolved DESC  

Como eu quero:  
@users in (currentUser(), 712020:984c1958-2ee8-4ad3-853b-b018a9c56586)

assignee = @users AND status in (Resolvido, Fechado) ORDER BY resolved DESC  

Eu quero criar a classe users.


Answers:
author: Trudy Claspill
body: Ol? [@Glauber Sakamae Ramon](/t5/user/viewprofilepage/user-id/5570444) ,

Bem-vindo ? comunidade Atlassiana.

A ?nica funcionalidade nativa pr?xima ao que voc? descreve ? ??criar um grupo de usu?rios e, em seguida, usar a fun??o memberOf().

<https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#membersOf-->

Grupos de usu?rios podem ser criados atrav?s do gerenciamento de usu?rios se voc? tiver permiss?es suficientes.

---

Hello,

Welcome to the Atlassian community.

The only native functionality that is close to what you describe is to create a User Group and then user the membersOf() function.

<https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#membersOf-->

User Groups can be created through User Management if you have sufficient permissions.

> How do I create a class that contains several analysts within it in the research field?
>
> How do I create a class that contains several analysts within it in the research field?
>
> Example:  
> How it is:  
> assignee in (currentUser(), 712020:984c1958-2ee8-4ad3-853b-b018a9c56586) AND status in (Resolved, Closed) ORDER BY resolved DESC
>
> How I want:  
> @users in (currentUser(), 712020:984c1958-2ee8-4ad3-853b-b018a9c56586)
>
> assignee = @users AND status in (Resolved, Closed) ORDER BY resolved DESC
>
> I want to create the users class.


Tags: cloud

jira-cloud
JQL to ignore custom field changes after a specific time
Asked by Chris Harris:

I am trying to find all tickets that had a Status update to Deployment on Wed each week which have a certain Release Date window, which is tracked in a custom field. The problem is that if a Release Date is updated after the Status change then the ticket drops out of the report. This is what I have for my JQL.

Project = PROJECTNAME AND Status changed to Deployment during (startOfWeek(3d), startOfWeek(4d)) AND "RELEASE DATE" in (startOfWeek(3d), startOfWeek(10d))

Is there JQL that will include all tickets that were with within this Release Date timeframe regardless of current dates.


Answers:
author: Dan -minware-
body: Disclaimer: 3rd party market place partner

Hey [@Chris Harris](/t5/user/viewprofilepage/user-id/5153070) this is something that we can help with at minware using minQL:

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

We offer a free trial if you want to check it out!


author: Seon Shakespeare
body: Hi Chris,

While JQL can track some history, it can't directly show you the value of a custom field at a specific past date.

To track the release date as it was at the time of deployment, you could try adding a new status like "Deployment Scheduled" or a custom field like "Original Release Date" that captures the release date during the "Deployment" transition.

This way, you'll have a record of the historical release date even if it's updated later.

Hope this helps!


Tags: data-center

jira-data-center
What is the process to move an JIRA account from Company A to Company B
Asked by senthilkumarn:

My company ( lets say A) has been acquired by another company( lets say B).

Now we want to move all our JIRA, Confluence space to Company B.

Once we move all the data to Company B, the JIRA account in A will be closed.

It would be great if can someone help on how to process it.


Answers:
author: Michel Neeser
body: Hi [@senthilkumarn](/t5/user/viewprofilepage/user-id/3214696)

You can use the "Copy product data" feature to move data from one instance to another, as described [here](https://support.atlassian.com/organization-administration/docs/copy-product-data/). Once the move is completed, you can [cancel the subscription](https://support.atlassian.com/subscriptions-and-billing/docs/cancel-a-subscription/) of the old instance.

Hope this helps as a start!

comments: author: senthilkumarn
body: Thank you Michel Nesser, let me check


author: Michel Neeser
body: Hi [@senthilkumarn](/t5/user/viewprofilepage/user-id/3214696)

If it worked for you, please consider accepting the answer, as it may be helpful for others in the future as well. Thank you!


Tags: cloud

jira-cloud